webpack-remove-assets-plugin

1.0.1 • Public • Published

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.js
var RemoveAssetsPlugin = require('webpack-remove-assets-plugin');
 
module.exports = {
  // ... snip ...
  plugins: [
        new RemoveAssetsPlugin({regex: /.*_nls-.*\.map$/});
  ],
  // ... snip ...
}

Options

regex

The regular expression to match against the assets to remove.

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-remove-assets-plugin

Weekly Downloads

4

Version

1.0.1

License

(Apache-2.0)

Unpacked Size

3.7 kB

Total Files

7

Last publish

Collaborators

  • chuckdumont