TailwindCSS and UI Eats a Lot of Time Even when Using Very Fast Bundler... Like Svite #2424
Unanswered
codeitlikemiley
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Good Day
Im using Svite , its vite but for svelte projects...
Svite has few examples ive tried,
minimal (vanilla svelte) (1sec)
svelte-preprocess-auto (svelte with typescript) (1 sec)
postcss-tailwind (svelte with tailwind postcss) (3 Secs)
So Ive tried creating mine combining all and adding tailwind ui
https://github.com/goldcoders/volt - (same 3 secs)
Everytime I restart server it will take 3 secs and average 600 ms on succeding hot reload...
is there a way to cut the loading time of tailwind css?
Im thinking of just compiling whole tailwindcss classes then load it all during dev minified...
and just avoid compiliation but there are instances that you need to add extra classes...
load some plugins, so i dont think that would fit my usecase...
Ive notice it in all my projects that the only reason compilation time is slow is because of tailwind..
Hope loading time would be improved in the future...
Beta Was this translation helpful? Give feedback.
All reactions