Slide 134
Slide 134 text
{
// ...
splitChunks: {
chunks: 'async',
minSize: 30000,
maxSize: 0, // Minimum size, in bytes, for a chunk to be
generated.
minChunks: 1, // Minimum number of chunks that must share a
module before splitting
maxAsyncRequests: 5, // Maximum number of parallel requests
when on-demand loading.
maxInitialRequests: 3, // Maximum number of parallel
requests at an entry point.
automaticNameDelimiter: '~',
automaticNameMaxLength: 30,
name: true,
cacheGroups: {
vendors: {
test: /[\\/]node_modules[\\/]/,
priority: -10 // cache groups and priority }
};