# simple-webpack-clean-plugin

> Webpack plugin, cleans directory on rebuild

Latest version **0.1.0** (published 2017-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-webpack-clean-plugin
pnpm add simple-webpack-clean-plugin
yarn add simple-webpack-clean-plugin
bun add simple-webpack-clean-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.0 |
| Published | 2017-10-06 |
| First published | 2017-10-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lukasz Gonciarz |
| Maintainers | goncarz |
| Keywords | webpack |

## Links

- npm: https://www.npmjs.com/package/simple-webpack-clean-plugin
- Repository: https://github.com/vanluke/webpack-clean-on-emit
- Homepage: https://github.com/vanluke/webpack-clean-on-emit#readme
- Issues: https://github.com/vanluke/webpack-clean-on-emit/issues
- npm.io page: https://npm.io/package/simple-webpack-clean-plugin

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2017-10-06
- 0.0.1 — 2017-10-06

## README

# simple-webpack-clean-plugin

Cleans files from directory on each files change

## Options:

  Required
  ``` src ``` - path to directory that needs to be cleaned
  ``` cleanAll ``` - indicates if all files should be removed from directory

  Optional
  ``` cleanCondition ``` - function define condition on files removal


## Examples

    See examples directory

## Installation

Install in your webpack config file

 
  ```javascript
  plugins: [
    new WebpackCleanPlugin({
      src: path.resolve(__dirname, 'build'),
      clearAll: true,
    }),
  ...
  ]

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