Let’s say, I am using HTMX and TailwindCSS for my project.
As you know there are multiple ways of using them in my project like
- using cdn
- using npm
- using the copy (HTMX)
- tailwindcss standalone cli
and many more.
What do you think is the best approach for using htmx and tailwindcss with Django?
I don’t think there would be one specific “best approach” for this. I think your decision should be based on your deployment environment. We’re in the habit of making local copies of all deployed resources, because there are environments some of our code runs in that isn’t connected to the internet - there wouldn’t be access to resources that aren’t local. (Granted, that’s not a common situation, but it is one of those factors that might affect your decision.)