Webpack plugin for removing empty js-chunks, auto-generated by mini-css-split-chunks plugin
const WebpackRemoveEmptyJSChunksPlugin = require('webpack-remove-empty-js-chunks-plugin').WebpackRemoveEmptyJSChunksPlugin;
/* ... */
plugins.push(new WebpackRemoveEmptyJSChunksPlugin(options));
An optional parameter, object with properties.
When set to false
, webpack will show list of js-files to be removed from assets.
Default: true
.
If set to true
, webpack will not remove generated empty js files and emit them to destination directory.
Default: false