{{- $sassOptions := dict "targetPath" "css/style.css" "enableSourceMap" true "outputStyle" "expanded" "precision" 6 -}} {{/*- $postcssOptions := dict "use" "autoprefixer" "noMap" true -*/}} {{ if eq hugo.Environment "production" -}} {{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}} {{- end -}} {{ $css := resources.Get "sass/main.scss" | toCSS $sassOptions -}} {{ if eq (hugo.Environment) "development" -}} {{ else -}} {{ $secureCSS := $css | resources.Fingerprint "sha512" -}} {{ end -}}