{{- $file_from := printf "scss/%s.scss" .Css }} {{- $file_to := printf "css/%s.css" .Css }} {{- $options := dict "transpiler" "libsass" "targetPath" $file_to }} {{- with resources.Get $file_from | toCSS $options }} {{- if eq hugo.Environment "development" }} {{- else }} {{- with . | minify | fingerprint }} {{- end }} {{- end }} {{- end }}