Skip to content

Commit ff22404

Browse files
committed
fix example
1 parent 2bd07b9 commit ff22404

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/common-chunk-and-vendor-chunk/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ module.exports = {
1313
commons: {
1414
chunks: "initial",
1515
minChunks: 2,
16+
maxInitialRequests: 5, // The default limit is too small to showcase the effect
1617
minSize: 0 // This is example is too small to create commons chunks
1718
},
1819
vendor: {
1920
test: /node_modules/,
2021
chunks: "initial",
2122
name: "vendor",
23+
priority: 10,
2224
enforce: true
2325
}
2426
}

0 commit comments

Comments
 (0)