# webpack-delete-plugin

> Simple post-process file deletion for Webpack.

Latest version **0.1.1** (published 2017-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-delete-plugin
pnpm add webpack-delete-plugin
yarn add webpack-delete-plugin
bun add webpack-delete-plugin
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-12-17 |
| First published | 2017-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matt Dawson |
| Maintainers | mdawsondev |

## Links

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

## Dependencies (1)

- [del](https://npm.io/package/del.md) ^3.0.0

## Recent versions

- 0.1.1 (latest) — 2017-12-17
- 0.1.0 — 2017-12-17
- 0.0.3 — 2017-12-17
- 0.0.2 — 2017-12-17

## README

# Webpack Delete Plugin
The Webpack Delete plugin is used to delete files after completing the output process.

## Installation
`npm install webpack-delete-plugin --save-dev`

## Use

This plugin runs async after the output has been completed. Use it to delete files **after** they've been built! This plugin **does not** clean folders for pre-processing.

### General Use

```const WebpackDeletePlugin = require("webpack-delete-plugin");

module.exports = {
  ...
  plugins: [
    new WebpackDeletePlugin(["./path/file.js", "./path/**/*", "./path/folder/**"])
  ]
}
```

Delete entire folders with `./path/folder/**` - this will delete the folder and everything inside.

WebpackDeletePlugin takes a string or array of strings as input.

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