Skip to content

Commit 8d71989

Browse files
Fix CSS compilation
1 parent 1b0c62a commit 8d71989

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

layouts/partials/head_includes.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
{{ $sass := resources.Get "scss/main.scss" | toCSS $sassOptions }}
66

77
{{- if eq hugo.Environment "production" -}}
8-
{{ $postCssOptions := (dict "config" "./postcss.config.js")}}
9-
{{ $sass = $sass | resources.PostCSS $postCssOptions | resources.Minify }}
8+
{{ $postCssOptions := dict "config" "./postcss.config.js" }}
9+
{{ $sass = $sass | css.PostCSS $postCssOptions }}
10+
{{ $sass = $sass | minify }}
1011
{{- end -}}
1112

13+
1214
<link rel="stylesheet" type="text/css" href="{{ $sass.RelPermalink }}" />
1315
<script async type="module" src="/js/main.js"></script>
1416
<script async type="module" src="/js/home.js"></script>

0 commit comments

Comments
 (0)