Skip to content

Commit 6b77e55

Browse files
committed
Common chunks
1 parent 145bc55 commit 6b77e55

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webpack.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ module.exports = {
4949
},
5050
plugins: [
5151
extractCssChunks,
52+
new webpack.optimize.CommonsChunkPlugin({
53+
name: 'main',
54+
async: 'common',
55+
minChunks: 2
56+
}),
5257
new FlushCssChunksPlugin({ entryOnly: true }),
5358
new webpack.NamedModulesPlugin(),
5459
new HtmlWebpackPlugin()

0 commit comments

Comments
 (0)