Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: support for exclude option by SwcCssMinimizerRspackPlugin #6898

Closed
dartess opened this issue Jun 24, 2024 · 0 comments · Fixed by #7111
Closed

[Feature]: support for exclude option by SwcCssMinimizerRspackPlugin #6898

dartess opened this issue Jun 24, 2024 · 0 comments · Fixed by #7111
Labels
feat New feature or request

Comments

@dartess
Copy link

dartess commented Jun 24, 2024

What problem does this feature solve?

I need to disable minification of third-party library files that are simply copied to build.

I managed to prevent minification of the JS using the exclude option, but it seems that the option for the CSS minifier has not yet been implemented.

What does the proposed API of configuration look like?

  optimization: {
    minimizer: [
      new SwcJsMinimizerRspackPlugin({ exclude: /^assets\// }), // <-- this is works
      new SwcCssMinimizerRspackPlugin({ exclude: /^assets\// }), // <-- this doesn't work
    ],
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants