How do I make Tailwind working? #111
Replies: 2 comments 15 replies
-
How Tailwind CSS classes work in Hextra is that - the classes are pre-compiled via PostCSS to assets/css/compiled/main.css. When using the theme, the compilation process wouldn't kick in. In your case, if you are running |
Beta Was this translation helpful? Give feedback.
-
@imfing Hi, I found the official reference and sample project by creator of Hugo about using Tailwind CSS and Hugo. https://gohugo.io/getting-started/configuration/#configure-cache-busters |
Beta Was this translation helpful? Give feedback.
-
So I am overriding/changing styles of pages eg.
./layouts/blog/list.html
(my site's root, NOT insidethemes/hextra/layouts
) but the new Tailwind style classes are not being reflected on my site.To clarify: the existing Tailwind classes that comes with the theme are working out-of-the-box - but the classes I am adding are not.
How do I force Tailwind to refresh css so that it includes the styles of the classes?
Looks like the command
hugo server
does not run alongside with Tailwind watch process? Am I missing something?Beta Was this translation helpful? Give feedback.
All reactions