1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 12:50:38 +08:00

update html-webpack-plugin

This commit is contained in:
Pan 2018-07-31 10:50:48 +08:00
parent cd6b2a27b9
commit 2e517317ad
2 changed files with 2 additions and 4 deletions

View File

@ -71,7 +71,6 @@ const webpackConfig = merge(baseWebpackConfig, {
// default sort mode uses toposort which cannot handle cyclic deps // default sort mode uses toposort which cannot handle cyclic deps
// in certain cases, and in webpack 4, chunk order in HTML doesn't // in certain cases, and in webpack 4, chunk order in HTML doesn't
// matter anyway // matter anyway
chunksSortMode: 'none'
}), }),
new ScriptExtHtmlWebpackPlugin({ new ScriptExtHtmlWebpackPlugin({
//`runtime` must same as runtimeChunk name. default is `runtime` //`runtime` must same as runtimeChunk name. default is `runtime`
@ -92,7 +91,6 @@ const webpackConfig = merge(baseWebpackConfig, {
ignore: ['.*'] ignore: ['.*']
}]) }])
], ],
// recordsPath: path.resolve('webpack-records.json'),
optimization: { optimization: {
splitChunks: { splitChunks: {
chunks: 'all', chunks: 'all',

View File

@ -85,7 +85,7 @@
"eslint-plugin-html": "4.0.5", "eslint-plugin-html": "4.0.5",
"file-loader": "1.1.11", "file-loader": "1.1.11",
"friendly-errors-webpack-plugin": "1.7.0", "friendly-errors-webpack-plugin": "1.7.0",
"html-webpack-plugin": "3.2.0", "html-webpack-plugin": "^4.0.0-alpha",
"husky": "0.14.3", "husky": "0.14.3",
"lint-staged": "7.2.0", "lint-staged": "7.2.0",
"mini-css-extract-plugin": "0.4.1", "mini-css-extract-plugin": "0.4.1",
@ -99,8 +99,8 @@
"postcss-url": "7.3.2", "postcss-url": "7.3.2",
"rimraf": "2.6.2", "rimraf": "2.6.2",
"sass-loader": "7.0.3", "sass-loader": "7.0.3",
"script-loader": "0.7.2",
"script-ext-html-webpack-plugin": "2.0.1", "script-ext-html-webpack-plugin": "2.0.1",
"script-loader": "0.7.2",
"semver": "5.5.0", "semver": "5.5.0",
"serve-static": "1.13.2", "serve-static": "1.13.2",
"shelljs": "0.8.2", "shelljs": "0.8.2",