Skip to content

Netlify deploy render issues #1135

Answered by h-enk
jollydodo asked this question in Support
Nov 28, 2023 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

OK. What I did, I suspected a PurgCSS issue, so I updated config/postcss.config.js to:

const autoprefixer = require('autoprefixer');
const purgecss = require('@fullhuman/postcss-purgecss');
const whitelister = require('purgecss-whitelister');

module.exports = {
  plugins: [
    autoprefixer(),
  ],
}

Next I ran (using WSL):

  1. rm -rf hugo_stats.json
  2. 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 of package.json:

"build": "exec-bin node_modules/.bin/hugo/hugo --cleanDestinationDir",

And, ran again:

  1. rm -rf hugo_stats.json
  2. npm run clean:build && npm run build -- --baseURL=/ && npm r…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jollydodo
Comment options

Comment options

You must be logged in to vote
5 replies
@jollydodo
Comment options

@h-enk
Comment options

Answer selected by jollydodo
@jollydodo
Comment options

@jollydodo
Comment options

@jollydodo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants