webpack-clean-plugin

0.2.3 • Public • Published

webpack-clean-plugin

A Webpack plugin for removing files and folders.

Installation

npm install webpack-clean-plugin --save-dev

Example Webpack Config

var WebpackCleanPlugin = require('webpack-clean-plugin');
 
module.exports = {
    plugins: [
        new WebpackCleanPlugin({
            on: "emit",
            path: ['./static', './build']
        })
    ]
}
on

One of Webpack build steps. Such as emit compilce and so on.

emit
path

The Array of file and dictory or just a string.

['./static', './build'] or './build'

License

https://opensource.org/licenses/mit-license.php

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.3
    455
    • MIT
  • 0.2.3
    455
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.3
    455

Package Sidebar

Install

npm i webpack-clean-plugin

Weekly Downloads

455

Version

0.2.3

License

MIT

Last publish

Collaborators

  • banama