-
Hey, Sorry to bother again, but I'm running into some small issues on the final deployment. When I deploy the site to Netlify, my layout gets all messed up. I tried the steps from #1121 i.e. create a local build of Hugo_stats.json and upload this to gitlab. However, this does not seem to be the problem in my case. The website works fine in my local environment. I created a new public repo for testing purposes and when I clone this into a new directory and run 'npm install', it also works fine locally. However, on deployment some thing go wrong. I don't get any errors in the console. Any help is very much appreciated :) deployment url: public repo: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Can't clone your repo (it contains staged changes). I noticed the Could you try again by leaving out |
Beta Was this translation helpful? Give feedback.
-
And could you try with commenting out this line: https://gitlab.com/fablabarnhem/doks-debug-test/-/blob/main/config/postcss.config.js?ref_type=heads#L47 |
Beta Was this translation helpful? Give feedback.
-
There's still something off with your repo. When I do a git clone, I get an empty repo. I did a I tried a few things, but I got inconsistent/non-reproducable behavior — so, that does not help. Please first fix your repo. |
Beta Was this translation helpful? Give feedback.
OK. What I did, I suspected a PurgCSS issue, so I updated
config/postcss.config.js
to:Next I ran (using WSL):
rm -rf hugo_stats.json
npm run clean:build && npm run build -- --baseURL=/ && npm run preview
Result: Better, but still wonky.
Next I dropped the
--minify
flag in the build script ofpackage.json
:And, ran again:
rm -rf hugo_stats.json
npm run clean:build && npm run build -- --baseURL=/ && npm r…