empty-webpack-plugin
v1.0.2
Published
A webpack plugin to remove/clean your build folder.
Downloads
5
Maintainers
Readme
Clean plugin for webpack
A webpack plugin to clean output.path
folder for webpack project.
Installation
npm install --save-dev empty-webpack-plugin
Usage
const EmptyWebpackPlugin = require('empty-webpack-plugin');
module.exports = {
...
plugins: [
// clean out.path folder
new EmptyWebpackPlugin()
]
...
}
module.exports = {
...
plugins: [
// exclude .git folder
new EmptyWebpackPlugin({ exclude: '.git' })
]
...
}