mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-01-17 13:38:33 +01:00
webpack 4
This commit is contained in:
parent
5047e74b4e
commit
1da8c3966b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
5389
package-lock.json
generated
5389
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -20,7 +20,7 @@
|
||||
"makehandlers": "node tools/aggregate-js-handlers",
|
||||
"makeindex": "node tools/form-section-index-files",
|
||||
"dev:bl": "run-s bootstrap less",
|
||||
"dev:server": "webpack-dev-server --progress --colors --hot --inline",
|
||||
"dev:server": "webpack-serve webpack.config.js",
|
||||
"dev": "run-s dev:bl dev:server",
|
||||
"dev:en-GB": "cross-env LOCALE=en-GB && npm run dev",
|
||||
"dev:zh-CN": "cross-env LOCALE=zh-CN && npm run dev",
|
||||
@ -49,7 +49,7 @@
|
||||
],
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.3.17",
|
||||
"babel-loader": "^6.2.0",
|
||||
"babel-loader": "^7.1.4",
|
||||
"babel-minify": "^0.4.3",
|
||||
"babel-minify-webpack-plugin": "^0.3.1",
|
||||
"babel-preset-es2015": "^6.3.13",
|
||||
@ -62,7 +62,7 @@
|
||||
"css-loader": "^0.23.0",
|
||||
"csso": "^2.3.1",
|
||||
"eslint": "^1.10.3",
|
||||
"eslint-loader": "^1.6.0",
|
||||
"eslint-loader": "^2.0.0",
|
||||
"eslint-plugin-react": "^6.9.0",
|
||||
"file-loader": "^0.8.5",
|
||||
"fs-extra": "^0.26.7",
|
||||
@ -91,12 +91,15 @@
|
||||
"react-component-visibility": "0.0.8",
|
||||
"react-dom": "^15.0.0",
|
||||
"react-router": "^1.0.3",
|
||||
"rollup-plugin-babel": "^3.0.4",
|
||||
"rollup-plugin-node-resolve": "^3.3.0",
|
||||
"sha1": "^1.1.1",
|
||||
"showdown": "^1.6.4",
|
||||
"shx": "^0.2.2",
|
||||
"style-loader": "^0.13.0",
|
||||
"svgo": "^0.6.6",
|
||||
"webpack": "^2.0.0",
|
||||
"webpack-dev-server": "^2.0.0"
|
||||
"webpack": "^4.12.0",
|
||||
"webpack-cli": "^3.0.8",
|
||||
"webpack-serve": "^1.0.4"
|
||||
}
|
||||
}
|
||||
|
@ -20,12 +20,12 @@ var output = {
|
||||
|
||||
// Necessary webpack loaders for converting our content:
|
||||
var webpackLoaders = [
|
||||
'babel-loader',
|
||||
'eslint-loader',
|
||||
__dirname + '/lib/latex-loader',
|
||||
__dirname + '/lib/pre-loader',
|
||||
__dirname + '/lib/p-loader',
|
||||
__dirname + '/lib/textarea-loader'
|
||||
{loader: 'babel-loader'},
|
||||
{loader: 'eslint-loader'},
|
||||
{loader: __dirname + '/lib/latex-loader'},
|
||||
{loader: __dirname + '/lib/pre-loader'},
|
||||
{loader: __dirname + '/lib/p-loader'},
|
||||
{loader: __dirname + '/lib/textarea-loader'}
|
||||
];
|
||||
|
||||
var resolve = {
|
||||
@ -53,10 +53,12 @@ module.exports = {
|
||||
output: output,
|
||||
resolve: resolve,
|
||||
module: {
|
||||
loaders: [
|
||||
rules: [
|
||||
{
|
||||
test: /\.json$/,
|
||||
loader: "json"
|
||||
use: [
|
||||
{ loader: 'json-loader' }
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /.jsx?$/,
|
||||
@ -65,7 +67,7 @@ module.exports = {
|
||||
/lib.site/,
|
||||
/locales/
|
||||
],
|
||||
loaders: webpackLoaders
|
||||
use: webpackLoaders
|
||||
}
|
||||
]
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user