Add 'cleanupOnlyLastBuild' option
This adds a selfOnly option that will only remove files that the current Webpack compilation has created.
Can be used in combination or as an alternative to exclude.
👋 thanks for the idea! What is the use case for this?
On my build setup I copy a lot of static files to my public build directory before Webpack's compilation. I would need to either continually keep the exclude option updated with new static files without this option.
IMO this should be default as this plugin's goal is to cleanup Webpack's assets, not clean the build directory. Unless I am mistaken?
It makes sense. What about calling the option cleanupOnlyLastBuild or something like that?
Works for me. PR incoming
Any other changes requested?