Tailwind released a new CLI which made JIT watch mode possible. We can use it to integrate JIT into a Hugo site. Let's see how to do that. Our build s

Use Tailwind JIT with Hugo

submited by
Style Pass
2021-06-06 15:30:02

Tailwind released a new CLI which made JIT watch mode possible. We can use it to integrate JIT into a Hugo site. Let's see how to do that.

Our build script will minify the css while building for production, you can use the following combined script for building minified production ready code.

And don’t forget to add static/main.css to your .gitignore file. Otherwise the automatically generated css file will be pushed to your repo.

Leave a Comment