Run PostCSS only when Markdown file changes

Hi @mukhtharcm

you said

but I am unable to see any repo link? it will be nice to know of any new Hugo tailwind method, theme etc.

also I had a similar post you can see here

and there is an issue page for tailwind which seems like you have already tried.

you can also check the blog of @bwintx Making Tailwind JIT work with Hugo

and another latest post of @Jonas_D How to use TailwindCSS 3.0 without external NPM scripts, just Hugo pipes

some plugins like tailwind forms etc doesnt work properly so I searched alot like you are doing and best recommendation is to stick with one of the above hacks until some official progress on this from Hugo

just to give you heads up do not expect anything soon as I see the integration issue with tailwind since 2020.

same here Hugo now take 15 seconds for the 3 pages I generate all internal simple markdown. but how long it takes not a problem unless you thinking to setup some automatic build then it will be a big problem in which case other ssg might win over Hugo or you have to choose between Hugo or tailwind.

tailwind % hugo server
Start building sites … 
hugo v0.92.0+extended darwin/amd64 BuildDate=unknown

                   | EN  
-------------------+-----
  Pages            |  3  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     |  0  
  Processed images |  0  
  Aliases          |  0  
  Sitemaps         |  0  
  Cleaned          |  0  

Built in 14585 ms

hope this was helpful


just a side note I am using Hugo Blist theme cant confirm if it has to do with the theme or Hugo but all my tailwind Hugo test projects ends up being slow. Hugo without tailwind seems to be really fast.