microsoft / griffel

CSS-in-JS with ahead-of-time compilation ⚡️
https://griffel.js.org
MIT License
1.2k stars 61 forks source link

vite: add support for CSS extraction #494

Open layershifter opened 10 months ago

layershifter commented 10 months ago

41 added a plugin for Vite that supports AOT. The plugin should be updated to also support CSS extraction.

zoontek commented 6 months ago

Hi @layershifter! Is there anything I could do to help on this task?

Currently, I cannot use griffel on a vite project as I also use SSR, and I don't have a way to extract and inject CSS. But it works perfectly on another project that use next and webpack extraction.

layershifter commented 6 months ago

@zoontek TBH I haven't investigated it yet, so I can share only generic steps...