Commit 24ab2018 authored by gxkai's avatar gxkai

chore: add chunk

parent b6a913a2
...@@ -34,7 +34,16 @@ module.exports = config => { ...@@ -34,7 +34,16 @@ module.exports = config => {
cache: true, cache: true,
parallel: true parallel: true
}) })
] ],
splitChunks: {
cacheGroups: {
commons: {
test: /[\\/]node_modules[\\/]/,
name: 'vendors',
chunks: 'all'
}
}
}
} }
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment