Hugo server is hanging, but build is ok

Any idea why my site (tailwind branch) is building but not “servering” since I upgraded Hugo from 0.76.5 to 0.92.0 ?

hugo server is hanging, and --debug shows pages building very slowly.

git clone --recurse-submodules https://github.com/inwardmovement/inwardmovement.github.io
cd inwardmovement.github.io/
git switch tailwind
npm install
hugo server

Result:

ERROR 2022/01/21 12:01:10 POSTCSS: failed to transform “css/main.css” (text/css). Check your PostCSS installation; install with “npm install postcss-cli”. See https://gohugo.io/hugo-pipes/postcss/: this feature is not available in your current Hugo version, see Frequently asked questions | Hugo for more information

Then:

npm install -D postcss-cli
hugo server

Really slow – not sure why.

However, I can reproduce the poor performance with v0.76.5 as well. You upgraded from v0.76.5 to v0.92.0 because .UnixMilli is not available prior to v0.88.0.

In layouts/partials/styles.html, replace .UnixMilli with .UnixNano, and then run hugo server with v0.76.5 – it 's still really slow.

@jmooring Thanks for your help. Should I open an issue?

I don’t think so.

hugo server doesn’t hang; it’s just really slow as it generates 342 pages.

And if you comment out this line hugo server is fast.

My current thinking is that while this workaround might be OK to test a few pages, it’s not suitable for a site with many pages.

But that’s just an educated guess.

1 Like

Ok thanks, so I’ll use tailwind CLI for now, until it’s well supported by hugo/postcss.