suppress-files-webpack-plugin
Webpack plugin for removing files with names that match a regex from the build output.
When working with complex Webpack builds and async loaded chunks, sometimes you need to exclude or suppress certain files from being outputted.
Install
$ npm install --save-dev suppress-files-webpack-plugin
Usage
In your webpack.config.js
:
plugins: match: /\.js$/
You can provide a RegExp
to the match
parameter which is compared against the file name of the chunk. Anything that matches will be deleted from the outputted build.
Maintainers
David Jackson |