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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    7
    • latest
  • 1.0.1-0
    1
    • unstable

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    7
  • 1.0.1-0
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i webpack-remove-assets-plugin

Weekly Downloads

8

Version

1.0.1

License

(Apache-2.0)

Unpacked Size

3.7 kB

Total Files

7

Last publish

Collaborators

  • chuckdumont