PyHAT-stack / web-async-patterns

This repo shows patterns you can use to elevate Python web apps via streaming HTML and htmx
102 stars 6 forks source link

Using TailwindCSS without CDN #1

Closed Suman2023 closed 8 months ago

Suman2023 commented 9 months ago

Hello, I have been learning Django from some time and got here through the DjangoCon video. Here i see using the tailwindcss from CDN which is not recommended in the docs. How do we solve that i have been looking for this but most of them added too many complexities. Can you provide a better and optimized way as this is all about lowering the loading time and size. Thanks.

Chris-May commented 8 months ago

Hello, Suman!

You are correct, using Tailwind CSS through the CDN is not recommended for production.

When I set up my projects, I use the Tailwind CLI tool as written in their documentation.

However, several people I know enjoy using the pytailwindcss PYPI package.