Skip to content

Commit 39f5853

Browse files
committed
add async vendor chunk (+2 squashed commits)
Squashed commits: [00b5ae6] small fixes [b125493] improve async vendor chunk settings. small fixes
1 parent 19b89eb commit 39f5853

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

template/build/webpack.prod.conf.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ const webpackConfig = merge(baseWebpackConfig, {
100100
// see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
101101
new webpack.optimize.CommonsChunkPlugin({
102102
name: 'app',
103-
async: true,
103+
async: 'vendor-async',
104104
children: true,
105-
minChnks: 3,
105+
minChunks: 3,
106106
}),
107+
107108
// copy custom static assets
108109
new CopyWebpackPlugin([
109110
{

0 commit comments

Comments
 (0)