Is Tailwind Necessary in a Live Environment?

0
11
Asked By CuriousCoder88 On

Hey everyone, I have a bit of a silly question that's more of a sanity check. Do I actually need to have any Tailwind files present in my live environment? I mean, since Tailwind essentially acts as a CSS compiler, can I just run it on my staging environment to build the styles and then upload the compiled CSS to the live server alongside the HTML? This way, I can avoid the overhead of installing Tailwind on the live server unless I plan to compile CSS or make changes directly in the future.

2 Answers

Answered By TailwindFan99 On

Yes, you can definitely do that! Tailwind compiles into a CSS file that you can easily share between environments. But honestly, I’m not sure why you would want to skip using it in production. Tailwind isn’t that heavy on resources, so it might be better to let it do its job during your production build.

Answered By CSSJunkie42 On

I don’t think you really need Tailwind on the live server. If your site must generate various styles for colors or sizes dynamically, you might just stick to inline CSS instead. Typically, Tailwind’s generated CSS doesn’t change much, so if you make an update, users will have to re-download everything, rather than using cached versions. Maybe keep it for production, but not strictly for live?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.