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 LightningCssMinimizerRspackPlugin #7135

Closed
dartess opened this issue Jul 12, 2024 · 0 comments · Fixed by #7290
Closed

[Feature]: support for exclude option by LightningCssMinimizerRspackPlugin #7135

dartess opened this issue Jul 12, 2024 · 0 comments · Fixed by #7290
Labels
feat New feature or request pr welcome

Comments

@dartess
Copy link

dartess commented Jul 12, 2024

What problem does this feature solve?

Already described for SwcCssMinimizerRspackPlugin: #6898

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 LightningCssMinimizerRspackPlugin({ exclude: /^assets\// }), // <-- this doesn't exist
    ],
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request pr welcome
Projects
None yet
2 participants