Webpack 5 has been officially released. Read our announcement. Not ready yet? Read webpack 4 documentation here.
Keep chunk size above the specified limit by merging chunks that are smaller than the minChunkSize
.
new webpack.optimize.MinChunkSizePlugin({
minChunkSize: 10000, // Minimum number of characters
});
This plugin and it's options can also be invoked via the CLI:
webpack --optimize-min-chunk-size 10000