webpack-cleanup-plugin icon indicating copy to clipboard operation
webpack-cleanup-plugin copied to clipboard

Remove empty folders

Open kriansa opened this issue 9 years ago • 3 comments

This an enhancement. It will be nice if this plugin also removes the empty folder from previous compilations.

kriansa avatar Oct 22 '16 19:10 kriansa

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?

gpbl avatar Feb 11 '17 03:02 gpbl

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 css to style in Webpack conf
  • Now old files are removed but css folder stays empty ...

JalilArfaoui avatar Jul 06 '17 21:07 JalilArfaoui

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.

kriansa avatar Jul 17 '17 21:07 kriansa