Skip to content

Commit cdc51e0

Browse files
author
Ken Berkeley
committed
add MinChunkSizePlugin
1 parent 6949d53 commit cdc51e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/webpack.prod.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ config.plugins.push(
4747
names: ['vendor', 'mainifest']
4848
}),
4949
new webpack.optimize.AggressiveMergingPlugin(),
50+
new webpack.optimize.MinChunkSizePlugin({
51+
minChunkSize: 30000
52+
}),
5053
new ExtractTextPlugin('[name].[contenthash:6].css', {
5154
allChunks : true // 若要按需加载 CSS 则请注释掉该行
5255
}),

0 commit comments

Comments
 (0)