expecting to have only two chunks vendors and commons. However webpack creates a new chunk file for specific entries with delimiter.
optimization: {
splitChunks: {
chunks: 'all',
cacheGroups: {
vendor: {
name: 'vendors',
chunks: 'all',
test: /[\\/]node_modules[\\/]/,
reuseExistingChunk: true,
},
common: {
chunks: 'all',
minChunks: 9,
name: 'commons',
reuseExistingChunk: true,
}
}
}
}
How to force webpack to use one of those in cacheGroups and not to create a new one?