{{- $isProduction := (or (eq (getenv "HUGO_ENV") "production") (eq site.Params.env "production")) -}}
{{- $scripts := slice -}}
{{- $scripts = $scripts | append (resources.Get "js/ed.js") -}}
{{- $scripts = $scripts | resources.Concat "js/common.js" -}}
{{- $scripts = $scripts | js.Build (dict "format" "iife" "target" "es2015" "minify" $isProduction) -}}
{{- if or (site.Params.assets.disable_fingerprinting) (not $isProduction) }}
{{- else -}}
{{- $scripts = $scripts | fingerprint }}
{{- end -}}