Skip to content

Commit

Permalink
Updated pro config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunshine168 committed Apr 10, 2018
1 parent 73a0be9 commit f1c8d4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ module.exports = merge(baseConfig, {
runtimeChunk: true,
splitChunks: {
name: 'vendor',
cacheGroups: {
commons: {
chunks: 'initial',
minChunks: 2,
maxInitialRequests: 5,
minSize: 2,
name: 'common',
},
},
},
},
mode: 'production',
Expand Down

0 comments on commit f1c8d4b

Please sign in to comment.