webpack-remove-assets-plugin
Removes assets matching a regular expression before they are emitted.
Install
npm i -D webpack-remove-assets-plugin
Usage
// webpack.config.jsvar RemoveAssetsPlugin = ; moduleexports = // ... snip ... plugins: regex: /.*_nls-.*\.map$/; // ... snip ...
Options
regex
The regular expression to match against the assets to remove.