theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.app/
MIT License
1.14k stars 1.16k forks source link

hugo -e production not working #625

Open melroy89 opened 1 year ago

melroy89 commented 1 year ago

When I run hugo -e production I expect that there will be a Hugo production build.

However, hugo -e production is NOT building the production build?? The only way to get it working is to set HUGO_ENV environment variable to production. But again, the hugo -e production should do the same thing.

See also: https://gohugo.io/hugo-pipes/postprocess/#hugo-environment-variables-available-in-postcss

jhenstridge commented 1 year ago

I'd previously reported this in #574, which was closed. There is some discussion there about what needs to change, and why they decided not to do so.