Skip to content

feat: adopt the purged-by-default styles pipeline (hinode v3.6.0)#614

Open
markdumay wants to merge 1 commit into
mainfrom
styles/s4-adopt-pipeline
Open

feat: adopt the purged-by-default styles pipeline (hinode v3.6.0)#614
markdumay wants to merge 1 commit into
mainfrom
styles/s4-adopt-pipeline

Conversation

@markdumay

Copy link
Copy Markdown
Collaborator

What

Adopts the modernized styles pipeline that shipped in hinode v3.6.0 (program slices S1-S3):

  • Bump hinode/v3 v3.0.0 → v3.6.0 (hugo mod get; transitive module drag from v3.6.0's
    requirements is included and vendored).
  • Replace config/postcss.config.js with the current hinode baseline: plugin order
    purgecss → autoprefixer → cssnano (purge first), cssnano default preset (drop the
    advanced preset + the cssnano-preset-advanced dependency), and reason-commented safelist.
  • Pin Bootstrap 5.3.8's browserslist in package.json so autoprefixer targets the browsers
    Bootstrap supports.
  • Drop the now-redundant explicit style.purge = true — v3.6.0 defaults it on.
  • Stop committing hugo_stats.json and gitignore it (build.buildStats regenerates it).

Evidence (fresh-site build, hugo --gc --minify)

  • Green, 0 ERROR, 0 panic, no purge/postcss warnings.
  • Purged CSS served: main.css 198 KB, autoprefixer prefixes present (67 -webkit-).
  • Deterministic: run-vs-run byte-identical.
  • Vendored hinode confirmed at v3.6.0 (+vendor, S2 guard present, default purge = true).

Part of the styles-pipeline modernization program (slice S4). Held for review.

Bump hinode v3.0.0 -> v3.6.0 (S1-S3 styles pipeline) and align the starter:
- Replace config/postcss.config.js with the current hinode baseline (purge-first
  order purgecss -> autoprefixer -> cssnano default; drop cssnano-preset-advanced).
- Pin Bootstrap 5.3.8's browserslist in package.json for autoprefixer.
- Drop the now-redundant explicit style.purge = true (v3.6.0 defaults it on).
- Stop committing hugo_stats.json and gitignore it (build.buildStats regenerates it).

Fresh-site build: green, purged CSS served (main.css 198 KB, autoprefixer
prefixes present), no purge/postcss warnings, run-vs-run deterministic.
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for gethinode-template ready!

Name Link
🔨 Latest commit afdd067
🔍 Latest deploy log https://app.netlify.com/projects/gethinode-template/deploys/6a5a64018082e30008c6d7c5
😎 Deploy Preview https://deploy-preview-614--gethinode-template.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant