0👍
Webpack has an optimization
Webpzck optimization
Here is en example:
optimization: {
splitChunks: {
cacheGroups: {
commons: {
test: /[\\/]node_modules[\\/]/,
minSize: 10000,
maxSize: 250000,
}
}
}
}
If you have a test folder, you should set
test: /[\\/]node_modules[\\/]/,
or your tests can’t bundle and run.
- [Vuejs]-Vue JS – Prevent show duplicate value in v-for
- [Vuejs]-How can I distribute the two pieces of a game engine in an efficient way?
Source:stackexchange.com