webpack-clean-files-plugin
v1.0.0
Published
A webpack plugin to clean `output.path` folder for webpack project.
Downloads
2
Readme
Clean Plugin
A webpack plugin to clean output.path
folder for webpack project.
Installation
npm install --save-dev webpack-clean-files-plugin
Usage
// webpack.config.js
const CleanPlugin = require('webpack-clean-files-plugin')
module.exports = {
···
plugins: [
// clean output.path folder
new CleanPlugin(),
],
···
}
module.exports = {
···
plugins: [
// exclude .git folder
new CleanPlugin({ exclude: '.git' }),
],
···
}