clean-build-on-watch-webpack-plugin

1.0.0-rc1 • Public • Published

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 ;)
]

Package Sidebar

Install

npm i clean-build-on-watch-webpack-plugin

Weekly Downloads

2

Version

1.0.0-rc1

License

MIT

Last publish

Collaborators

  • m4r1vs