Skip to content

Commit 960b562

Browse files
committed
update vue.config.js
1 parent ea0602a commit 960b562

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"connect": "3.6.6",
8585
"eslint": "5.15.1",
8686
"eslint-plugin-vue": "5.2.2",
87+
"html-webpack-plugin": "3.2.0",
8788
"husky": "1.3.1",
8889
"lint-staged": "7.2.2",
8990
"mockjs": "1.0.1-beta3",

vue.config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ module.exports = {
103103
.when(process.env.NODE_ENV !== 'development',
104104
config => {
105105
config
106-
// .plugin('ScriptExtHtmlWebpackPlugin')
107-
// .after('html')
108-
// .use('script-ext-html-webpack-plugin', [{
109-
// // `runtime` must same as runtimeChunk name. default is `runtime`
110-
// inline: /runtime\..*\.js$/
111-
// }])
112-
// .end()
106+
.plugin('ScriptExtHtmlWebpackPlugin')
107+
.after('html')
108+
.use('script-ext-html-webpack-plugin', [{
109+
// `runtime` must same as runtimeChunk name. default is `runtime`
110+
inline: /runtime\..*\.js$/
111+
}])
112+
.end()
113113
config
114114
.optimization.splitChunks({
115115
chunks: 'all',

0 commit comments

Comments
 (0)