Noncollinear Perpendicular Microcrystalline
Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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.

Keywords

none

Install

npm i webpack-remove-assets-plugin

DownloadsWeekly Downloads

21

Version

1.0.1

License

(Apache-2.0)

Unpacked Size

3.7 kB

Total Files

7

Last publish

Collaborators

  • avatar