johnagan / clean-webpack-plugin

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

Add caveat for webpack multiple targets #129

Closed PaulRBerg closed 2 years ago

PaulRBerg commented 5 years ago

I like this plugin but it caused me trouble when used alongside webpack's multiple targets feature. Adding a caveat for that would be immensely helpful.

chrisblossom commented 5 years ago

It is true (and expected) that the default settings are not compatible with multiple webpack builds that share an output folder, but other features of the plugin do work.

See also https://github.com/johnagan/clean-webpack-plugin/issues/122.