{{- $sourcemap := "" -}} {{- if not hugo.IsProduction -}} {{- $sourcemap = "inline" -}} {{- end -}} {{- $cssoptions := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) -}} {{- $jsoptions := (dict "minify" (not hugo.IsProduction) "format" "esm" "sourceMap" $sourcemap ) -}} {{- $scss := resources.Get "css/style.scss" | toCSS $cssoptions | fingerprint "sha512" -}} {{- $module := resources.Get "js/index.ts" | js.Build $jsoptions | fingerprint "sha512" -}}