File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 : / r u n t i m e \. .* \. j s $ /
111+ } ] )
112+ . end ( )
113113 config
114114 . optimization . splitChunks ( {
115115 chunks : 'all' ,
You can’t perform that action at this time.
0 commit comments