{{ $options := dict "targetPath" "theme.css" "enableSourceMap" true "precision" 6 }} {{ $css := resources.Get "sass/theme.scss" | resources.ExecuteAsTemplate "theme.scss" . | toCSS $options }} {{ if or (hugo.IsServer) (eq hugo.Environment "development") }} {{ else }} {{ $css := $css | resources.Minify | resources.Fingerprint }} {{ end }} {{ if isset .Site.Params "css_modules" }} {{ range .Site.Params.css_modules }} {{ end }} {{ end }}