{{ $scripts := resources.Get "output/js/app.js" }}
{{ $isDev := eq hugo.Environment "development" }}
{{ if not $isDev }}
{{ $scripts = $scripts | fingerprint }}
{{ end }}
{{ with $scripts }}
{{ if $isDev }}
{{ else }}
{{ end }}
{{ $.Scratch.Set "scripts" . }}
{{end}}