# webpack-remove-assets-plugin

> Removes assets matching a regular expression before they are emitted.

Latest version **1.0.1** (published 2018-06-22) · (Apache-2.0) license · 0 weekly downloads

## Install

```sh
npm install webpack-remove-assets-plugin
pnpm add webpack-remove-assets-plugin
yarn add webpack-remove-assets-plugin
bun add webpack-remove-assets-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-06-22 |
| First published | 2017-08-21 |
| Weekly downloads | 0 |
| License | (Apache-2.0) |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | chuckdumont |

## Links

- npm: https://www.npmjs.com/package/webpack-remove-assets-plugin
- Repository: https://github.com/chuckdumont/webpack-remove-assets-plugin
- Homepage: https://github.com/chuckdumont/webpack-remove-assets-plugin#readme
- Issues: https://github.com/chuckdumont/webpack-remove-assets-plugin/issues
- npm.io page: https://npm.io/package/webpack-remove-assets-plugin

## Dependencies (1)

- [webpack-plugin-compat](https://npm.io/package/webpack-plugin-compat.md) ^1.0.1

## Recent versions

- 1.0.1 (latest) — 2018-06-22
- 1.0.1-0 (unstable) — 2018-06-18
- 1.0.0 — 2017-08-21

## README

# webpack-remove-assets-plugin

Removes assets matching a regular expression before they are emitted.

## Install

```bash
npm i -D webpack-remove-assets-plugin
```
## Usage

```javascript
// 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.

---
_Source: https://npm.io/package/webpack-remove-assets-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
