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

Tailwindcss takes a long time to compile #2308

Closed
marvinhagemeister opened this issue Feb 13, 2024 · 6 comments
Closed

Tailwindcss takes a long time to compile #2308

marvinhagemeister opened this issue Feb 13, 2024 · 6 comments

Comments

@marvinhagemeister
Copy link
Collaborator

Mostly making this issue as a note for me to investigate a bit. Looked at the tailwind internals a while back here https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-8/ . So there is lots of room to speed it up.

We might also speed the UX up greatly by adding proper HMR support.

@king8fisher
Copy link
Contributor

Wondering if transitioning to UnoCSS could give us better results?
https://unocss.dev/integrations/runtime mentions something that might be appealing to Fresh.
Might need a migration guide.

@marvinhagemeister
Copy link
Collaborator Author

I benchmarked all the various libraries when writing the article. UnoCSS takes the same time as tailwindcss. We need to create styles also server side.

@miguelrk
Copy link

Although fresh sort-of went the tailwindcss route already, it would be cool to (officially) have unocss as an alternative as well, by landing #1966 which I've been using (unofficialy) already for a while and should be ready 👍🏼

@marvinhagemeister
Copy link
Collaborator Author

@miguelrk Who's going to maintain the UnoCSS plugin? If we merge it than the burden falls on me.

@miguelrk
Copy link

miguelrk commented Feb 14, 2024

Good point, totally understandable @marvinhagemeister... in case it helps someone, I maintain a fork 👍🏼 . In any case, eager to see improvements in the HMR space!

@marvinhagemeister
Copy link
Collaborator Author

Closing, as I've been sporadically in touch with the tailwindcss team and they made great strides in improving compilation performance. Once their new major version is out I'd expect it to be noticeably faster.

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

No branches or pull requests

3 participants