Skip to content

Commit

Permalink
count in minChunks
Browse files Browse the repository at this point in the history
  • Loading branch information
lyyourc committed May 3, 2017
1 parent dc549cc commit 5ef01ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ if (process.env.NODE_ENV === 'production') {
),
}),

new webpack.optimize.CommonsChunkPlugin({
async: 'used-twice',
minChunks: (module, count) => (
count >= 2
),
}),

new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
Expand Down

0 comments on commit 5ef01ab

Please sign in to comment.