clean-build-on-watch-webpack-plugin
v1.0.0-rc1
Published
This WebPack plugin removes old files from the build folder on each rebuild caused by `--watch`. To make use of this tiny plugin just install the plugin and then add it to your `webpack.config.js`:
Downloads
3
Maintainers
Readme
WebPack Clean Build-Folder on Watch
This WebPack plugin removes old files from the build folder on each rebuild caused by --watch
. To make use of this tiny plugin just install the plugin and then add it to your webpack.config.js
:
# via npm:
npm i clean-build-on-watch-webpack-plugin --dev
# or use yarn:
yarn add clean-build-on-watch-webpack-plugin -D
const CleanBuildOnWatchPlugin = require('clean-build-on-watch-webpack-plugin')
plugins: [
new CleanBuildOnWatchPlugin() // all you need ;)
]