Skip to content

Commit

Permalink
Fix usage of PostCSS and PostProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
janraasch committed Jan 9, 2025
1 parent 7b3f7f9 commit c290b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/head/styling.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- See https://gohugo.io/hugo-pipes/postprocess/#css-purging-with-postcss -->
{{ $css := resources.Get "css/main.css" }}
{{ $css = $css | resources.PostCSS }}
{{ $css = $css | css.PostCSS }}
{{ if hugo.IsProduction }}
{{ $css = $css | fingerprint | css.PostProcess }}
{{ $css = $css | fingerprint | resources.PostProcess }}
{{ end }}
<link href="{{ $css.Permalink }}" rel="stylesheet" />

0 comments on commit c290b36

Please sign in to comment.