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", "connect": "3.6.6",
"eslint": "5.15.1", "eslint": "5.15.1",
"eslint-plugin-vue": "5.2.2", "eslint-plugin-vue": "5.2.2",
"html-webpack-plugin": "3.2.0",
"husky": "1.3.1", "husky": "1.3.1",
"lint-staged": "7.2.2", "lint-staged": "7.2.2",
"mockjs": "1.0.1-beta3", "mockjs": "1.0.1-beta3",

View File

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