update vue.config.js

This commit is contained in:
Pan 2019-03-25 14:12:23 +08:00
parent ea0602a50f
commit 960b562e84
2 changed files with 8 additions and 7 deletions

View File

@ -84,6 +84,7 @@
"connect": "3.6.6",
"eslint": "5.15.1",
"eslint-plugin-vue": "5.2.2",
"html-webpack-plugin": "3.2.0",
"husky": "1.3.1",
"lint-staged": "7.2.2",
"mockjs": "1.0.1-beta3",

View File

@ -103,13 +103,13 @@ module.exports = {
.when(process.env.NODE_ENV !== 'development',
config => {
config
// .plugin('ScriptExtHtmlWebpackPlugin')
// .after('html')
// .use('script-ext-html-webpack-plugin', [{
// // `runtime` must same as runtimeChunk name. default is `runtime`
// inline: /runtime\..*\.js$/
// }])
// .end()
.plugin('ScriptExtHtmlWebpackPlugin')
.after('html')
.use('script-ext-html-webpack-plugin', [{
// `runtime` must same as runtimeChunk name. default is `runtime`
inline: /runtime\..*\.js$/
}])
.end()
config
.optimization.splitChunks({
chunks: 'all',