You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro has a client:only directive that skips server rendering of components. Currently this directive makes UnoCSS's Astro integration unaware of the component and skips generating styles for it.
UnoCSS version
0.50.4
Describe the bug
Astro has a
client:only
directive that skips server rendering of components. Currently this directive makes UnoCSS's Astro integration unaware of the component and skips generating styles for it.It is mentioned changing
page-ssr
topage
here works:unocss/packages/astro/src/index.ts
Line 66 in 87b414a
This does generate correct CSS, however the CSS file is not imported in the generated HTML, so the fix is not that simple.
Reproduction
https://stackblitz.com/edit/node-6xfq8u
Notice how in the generated CSS,
.text-blue
in Astro component is present, but.text-red
in Svelte component withclient:only
is missing.System Info
No response
Validations
The text was updated successfully, but these errors were encountered: