johnagan / clean-webpack-plugin

A webpack plugin to remove your build folder(s) before building

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] beforeEmit not default as true?

AAllport opened this issue · comments

Hi Dev,

Just a question as to why the beforeEmit option doesn't default to true.
Seems like that would be the logical thing to do?

Great Plugin BTW
AAllport

I agree it would be better to have it as default, though changing it in its current state could break people depending on it not being default. I will definitely change this for future versions though.

This has been changed in v2.0.0 via #99. See johnagan/clean-webpack-plugin#usage. Please open a new issue if you continue to have problems.

Sweet, thanks for the update. Keep up the good work 😄

Awesome that this default got changed! However, it wasn't quite clear for me that this was the case in the 2.0 release notes - perhaps stick it in there, if possible?

Thank you @chrisblossom and @johnagan. The defaults should work well for most use cases now - including mine 🎉

@oles I've added Additional v2 Information to further clarify the changes in v2.