Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 496 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 496 Bytes

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.