#How can I optimize Tailwind for production in Astro?

3 messages · Page 1 of 1 (latest)

uneven urchin
#

Tailwind has a page in their documentation about optimizing for production (https://tailwindcss.com/docs/optimizing-for-production), it has steps for the Tailwind CLI and PostCSS. In case you are using a framework, it says to check the framework documentation to see what you should do / if it is done automatically for you.

This might be done automatically in Astro, however I couldn't find anything about it in the docs. Should I do anything or is this being done at build?

teal roostBOT
#

Hi @uneven urchin. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the Astro documentation (https://docs.astro.build) for more information on how Astro handles CSS and optimizations.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: