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

docs: add documentation or support for CSS extraction with rsbuild/rspack #624

Open
chensid opened this issue Nov 24, 2024 · 2 comments
Open
Labels
📃 documentation Improvements or additions to documentation

Comments

@chensid
Copy link

chensid commented Nov 24, 2024

Description

Griffel is a powerful styling solution, and it works seamlessly with modern build tools. However, while rsbuild and rspack are becoming increasingly popular as webpack-compatible tools, there is no documentation or guidance on how to enable CSS extraction when using these tools with Griffel.

CSS extraction is a crucial feature for production builds, where styles are typically separated into standalone .css files for better performance and caching.

Expected Behavior

  • Clear instructions or built-in support to enable CSS extraction with rsbuild/rspack in projects using Griffel.
@layershifter layershifter changed the title Add documentation or support for CSS extraction with rsbuild/rspack docs: add documentation or support for CSS extraction with rsbuild/rspack Nov 26, 2024
@layershifter
Copy link
Member

@chensid our loader & plugins are compatible with Rspack out of the box. We also have a e2e test to run against Rspack, here is a minimal config: https://github.com/microsoft/griffel/blob/main/e2e/rspack/src/assets/rspack.config.js

However, I agree that having separate docs for Rspack would be great 🐱

@layershifter layershifter added the 📃 documentation Improvements or additions to documentation label Nov 26, 2024
@chensid
Copy link
Author

chensid commented Nov 27, 2024

@chensid our loader & plugins are compatible with Rspack out of the box. We also have a e2e test to run against Rspack, here is a minimal config: https://github.com/microsoft/griffel/blob/main/e2e/rspack/src/assets/rspack.config.js

However, I agree that having separate docs for Rspack would be great 🐱

Thank you for the example config! I’ll test it out in my project.

Looking forward to dedicated docs, especially with Fluent UI and TypeScript examples for production setups. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📃 documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants