With v0.75.0 and v0.75.1, it’s clear that this is something that is being worked on with Tailwind CSS and other build processes that utilize Node in mind, but I am struggling to find the best and most efficient way to use Hugo with Tailwind CSS.
I am really curious on getting it to work with the new hugo mod npm pack released in v0.75.0
This post from March mentions another way, but I can’t seem to make it work:
I realize @bep is quite possibly too busy to create this example (I’m not even sure how he makes time to eat!), but it seems this is still pretty unclear.
And more discussion:
It won’t let me post two links, so I am breaking this up…
It’s on my list of things to do. But life and work seem to get in the way.
You may, however, have seemed to noticed that some of the recent updates to Hugo has been geared towards the Tailwind/PostCSS combo, and I have a setup on my computer (a project + theme with Tailwind) that I intend to pull out (the setup, anyway) into a starter/template on GitHub.
I’m sorry that I haven’t gotten to this yet, but the time I have to spend on Hugo tends to come in … burts, and my priorities is not always in line with sensibility.
I’m using Tailwind (and it’s internal Purge) just fine without needing to install PostCSS at all.
I’m processing it using Tailwind’s builtin NPX script. I’m, though, not using a theme as I don’t need one.