Skip to content

[Feature]: Rspack output.clean support CleanOptions. #8549

@GiveMe-A-Name

Description

@GiveMe-A-Name

What problem does this feature solve?

align with webpack, output.clean config support CleanOptions.

What does the proposed API of configuration look like?

module.exporst = {
  output: { 
    clean: { dry: true, keep: /ignored\/dir\//,  }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or requestpending triageThe issue/PR is currently untouched.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions