老师,我现在在维护一个老的项目,里面用了splitChunks配置,基本就是官网默认的配置,但我打包生成的两个js文件,一个1.52M(业务逻辑代码),一个是1.05M(node_modules),我如何对它们再进行分割呢
splitChunks: {
chunks: “all”,
minSize: 30000,
minChunks: 1,
maxAsyncRequests: 5,
maxInitialRequests: 3,
automaticNameDelimiter: “~”,
name: ‘vendors’,
cacheGroups: {
vendors: {
test: /[\/]node_modules[\/]/,
priority: -10,
},
default: {
minChunks: 1,
priority: -20,
reuseExistingChunk: true,
},
},
},