johnagan / clean-webpack-plugin

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

Support for MultiCompiler? #161

Closed apfelbox closed 4 years ago

apfelbox commented 4 years ago

Hi,

webpack supports MultiCompilers:

webpack([config1, config2, ...]);

It seems that this plugin doesn't support it, as one of the compilers (the latest one) always removes the files from the previous builds..

Is this something that is on the roadmap / can be fixed?

chrisblossom commented 4 years ago

Multi-compilers are supported, you need to setup your build correctly.

See https://github.com/johnagan/clean-webpack-plugin/issues/157#issuecomment-518347683 and linked issues.

apfelbox commented 4 years ago

All right, thank you @chrisblossom !