kidonng / unocss-preset-daisy

UnoCSS preset for daisyUI
https://unocss-preset-daisy.vercel.app
MIT License
220 stars 19 forks source link

Add Astro config example to README #5

Closed arimgibson closed 1 year ago

arimgibson commented 1 year ago

While not totally rocket science after knowing (Astro lets you pass configuration directly to Vite)[https://docs.astro.build/en/reference/configuration-reference/#vite], I thought this configuration could still be useful for those trying to make everything work just right!

I've tested locally, and while the hotreload update time is significant (5+ seconds), it works as expected. I'm guessing this is due to the large size of daisyUI as mentioned in the README. Let me know if this is abnormal though and indicative of incompatibility with Astro.

kidonng commented 1 year ago

Thanks for testing this on Astro! To be honest using UnoCSS in Astro is a pain only until recently I think.

Regarding the hot reload time, it sounds like either a bug in Astro or the way UnoCSS is integrated, I'm going to take a look when I have time.

arimgibson commented 1 year ago

That sounds accurate @kidonng... I was using UnoCSS with Astro a few weeks ago without any trouble, but the lag recently has been crazy. Good to know it's not just me :sweat_smile: