rspack
rspack copied to clipboard
[Feature]: Support CleanPlugin like webpack
What problem does this feature solve?
In webpack, we get CleanPlugin hook, that to add some custom code. But in Rspack we can't do it.
What does the proposed API of configuration look like?
https://github.com/webpack/webpack/blob/4b4ca3bb53f36a5b8fc6bc1bd976ed7af161bd80/lib/CleanPlugin.js