webpack-cleanup-plugin
webpack-cleanup-plugin copied to clipboard
Remove empty folders
This an enhancement. It will be nice if this plugin also removes the empty folder from previous compilations.
Thanks for the idea!
I wonder how this could be implemented – what is the use case? Are the folders always in the same output path? Could you provide an example of a directory structure to clean?
Hello I would like that too. Example of simple use case :
- Previous Webpack conf was building files in
css/1.css,css/2.css, ... - Changed
csstostylein Webpack conf - Now old files are removed but
cssfolder stays empty ...
Wow, I opened this issue so long ago I didn't remember I opened it, sorry about that.
I think that the case described by @JalilArfaoui is what I most often fall into when I need to remove these folders.