Skip to content

[Feature]: Support CleanPlugin like webpack #8603

@GiveMe-A-Name

Description

@GiveMe-A-Name

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR welcomefeatNew feature or requestgood first issueGood for newcomersteamThe issue/pr is created by the member of Rspack.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions