Clean for webpack
A webpack plugin to remove/clean your build folder(s) before building
Installation
npm install clean-webpack-plugin --save-dev
Example Webpack Config
var CleanWebpackPlugin = require('clean-webpack-plugin');
module.exports = {
plugins: [
new CleanWebpackPlugin(['dist', 'build'], {
root: '/full/project/path',
verbose: true,
dry: false
})
]
}
Usage
new CleanWebpackPlugin(paths [, {options}])
Paths (Required)
An [array] of string paths to clean
['dist', 'build']
Options and defaults (Optional)
{
"root": "[location of webpack.config]",
"verbose": true,
"dry": false,
}
License
http://www.opensource.org/licenses/mit-license.php