В
Size: a a a
В
АГ
KS
АГ
KS
АГ
KA
KS
АГ
splitChunks.cacheGroups.{cacheGroup}.enforce
KS
АГ
KS
optimization: {
runtimeChunk: true,
splitChunks: {
chunks: 'all',
minSize: 10000,
maxSize: 150000,
minChunks: 1,
maxAsyncRequests: 5,
maxInitialRequests: 3,
automaticNameDelimiter: '_',
automaticNameMaxLength: 30,
name: true,
cacheGroups: {
vendors: {
test: /[\\/]node_modules[\\/]/,
priority: -10,
minSize: 140000,
maxSize: 150000,
reuseExistingChunk: true
},
default: {
minChunks: 2,
priority: -20,
reuseExistingChunk: true
}
}
}
},
В
АГ
optimization: {
runtimeChunk: true,
splitChunks: {
chunks: 'all',
minSize: 10000,
maxSize: 150000,
minChunks: 1,
maxAsyncRequests: 5,
maxInitialRequests: 3,
automaticNameDelimiter: '_',
automaticNameMaxLength: 30,
name: true,
cacheGroups: {
vendors: {
test: /[\\/]node_modules[\\/]/,
priority: -10,
minSize: 140000,
maxSize: 150000,
reuseExistingChunk: true
},
default: {
minChunks: 2,
priority: -20,
reuseExistingChunk: true
}
}
}
},
АГ
АГ
АГ
KS
АГ
В