1.0.1 • Published 6 years ago

webpack-remove-assets-plugin v1.0.1

Weekly downloads
110
License
(Apache-2.0)
Repository
github
Last release
6 years ago

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.

1.0.1

6 years ago

1.0.1-0

6 years ago

1.0.0

7 years ago