{{- $config := site.Data.configuration }} {{- with resources.Get "js/main.js" }} {{- $opts := dict "minify" (cond hugo.IsDevelopment false true) "sourceMap" (cond hugo.IsDevelopment "linked" "none") }} {{- with . | js.Build $opts }} {{- if hugo.IsDevelopment -}} {{- else }} {{- with . | fingerprint -}} {{- end }} {{- end }} {{- end }} {{- end }} {{- with $config.global.scripts }} {{- range $config.global.scripts -}} {{- end }} {{- end }}