Description
In this quick article, I showed how I set up Tailwind CSS for my Django app on Heroku.
Summary
- How can you set up Tailwind CSS for your Django app on Heroku?
- I set all of this up and my CSS file went from the huge CDN size to 29kB.
- Here are the high level steps to set up Tailwind for a Django app on Heroku: Hook The CSS File Into Templates With the Tailwind toolchain in place, I was ready to swap out my CDN version.
- By outputting the CSS file into the static directory, Django has no problem loading it with its standard static files mechanism.