{{- with resources.Get "js/main.js" }}
{{- if eq hugo.Environment "development" }}
{{- with . | js.Build }}
{{- end }}
{{- else }}
{{- $opts := dict "minify" true }}
{{- with . | js.Build $opts | fingerprint }}
{{- end }}
{{- end }}
{{- end }}
{{- range .Resources.Match "js/*.js" }}
{{- if eq hugo.Environment "development" }}
{{- with . | js.Build }}
{{- end }}
{{- else }}
{{- $opts := dict "minify" true }}
{{- with . | js.Build $opts | fingerprint }}
{{- end }}
{{- end }}
{{- end }}