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]: Native CSS Extract #1701

Closed
chenjiahan opened this issue Mar 1, 2024 · 0 comments · Fixed by #1577
Closed

[Feature]: Native CSS Extract #1701

chenjiahan opened this issue Mar 1, 2024 · 0 comments · Fixed by #1577
Assignees
Milestone

Comments

@chenjiahan
Copy link
Member

What problem does this feature solve?

Currently, Rsbuild uses different CSS implementations in Rspack mode and Webpack mode. Rspack mode uses the experimental CSS, while Webpack mode uses the mini-css-extract-plugin. Which means we need to maintain two separate sets of code.

Compared to mini-css-extract-plugin + css-loader, the capabilities of experimental CSS are weaker, such as CSS modules support, which has led to some issues. We plan to migrate to the native mini-css-extract-plugin of Rspack, polish this feature to stability as soon as possible (including the stability of its dependent new tree shaking), and unify the of CSS implementation.

What does the proposed API look like?

See: web-infra-dev/rspack#3210

Related PR: #1577

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants