DEV Community

Discussion on: [Update] Using Svelte with Tailwindcss - A better approach

Collapse
 
ateammate profile image
Malte H

Thank you so much for sharing this!
Got my build time down from 2:20 to just 19 seconds!

One note: noticing that my dev builds are slower than my production ones, i found that (at least for me) always executing purgecss gave me even better timings: 8 seconds!

i.e. replaced
...(production ? [purgecss] : []
with
purgecss

Collapse
 
sarioglu profile image
sarioglu

Thank you for sharing your results! Glad to help you out.

I think it worths to disableΒ Purgecss in development. I frequently use DevTools to add/remove some styles to get an instant preview. Therefore, I can sacrifice some seconds for better development experience πŸ™‚