Skip to content

Webpack plugin for removing empty js-chunks, auto-generated by mini-css-split-chunks plugin

Notifications You must be signed in to change notification settings

c4off/webpack-remove-empty-js-chunks-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-remove-empty-js-chunks-plugin

Webpack plugin for removing empty js-chunks, auto-generated by mini-css-split-chunks plugin

Usage

const WebpackRemoveEmptyJSChunksPlugin = require('webpack-remove-empty-js-chunks-plugin').WebpackRemoveEmptyJSChunksPlugin;
/* ... */
plugins.push(new WebpackRemoveEmptyJSChunksPlugin(options));

Options

An optional parameter, object with properties.

silent (boolean)

When set to false, webpack will show list of js-files to be removed from assets.

Default: true.

preserveEmptyAssets (boolean)

If set to true, webpack will not remove generated empty js files and emit them to destination directory.

Default: false

About

Webpack plugin for removing empty js-chunks, auto-generated by mini-css-split-chunks plugin

Resources

Stars

Watchers

Forks

Packages

No packages published