Skip to content

chuckdumont/webpack-remove-assets-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.