johnagan / clean-webpack-plugin

A webpack plugin to remove your build folder(s) before building
MIT License
1.96k stars 135 forks source link

Add an option to run after instead of just before #71

Closed factoidforrest closed 6 years ago

factoidforrest commented 6 years ago

It would be nice to clean up some build files as the very last step as well, not just wait to clean up until the next build is run. I think there should be a "after:true" option that tells the plugin to use one of the final webpack hooks. I assume there is a "build complete" hook or something like that.

ChrisRAoW commented 6 years ago

Just submitted a pull request: https://github.com/johnagan/clean-webpack-plugin/pull/72