Skip to content

Commit 593ea0e

Browse files
committed
Split out vendor packages into a separate chunk.
1 parent 8ff1ed7 commit 593ea0e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

webpack/dev.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ module.exports = (opts) => {
6969
},
7070
optimization: {
7171
splitChunks: {
72+
cacheGroups: {
73+
vendor: {
74+
test: /[\\/]node_modules[\\/]/,
75+
name: 'vendors',
76+
chunks: 'all',
77+
}
78+
},
7279
chunks: 'all',
7380
name: false
7481
},

0 commit comments

Comments
 (0)