We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b0c62a commit 8d71989Copy full SHA for 8d71989
layouts/partials/head_includes.html
@@ -5,10 +5,12 @@
5
{{ $sass := resources.Get "scss/main.scss" | toCSS $sassOptions }}
6
7
{{- if eq hugo.Environment "production" -}}
8
- {{ $postCssOptions := (dict "config" "./postcss.config.js")}}
9
- {{ $sass = $sass | resources.PostCSS $postCssOptions | resources.Minify }}
+ {{ $postCssOptions := dict "config" "./postcss.config.js" }}
+ {{ $sass = $sass | css.PostCSS $postCssOptions }}
10
+ {{ $sass = $sass | minify }}
11
{{- end -}}
12
13
+
14
<link rel="stylesheet" type="text/css" href="{{ $sass.RelPermalink }}" />
15
<script async type="module" src="/js/main.js"></script>
16
<script async type="module" src="/js/home.js"></script>
0 commit comments