diff --git a/src/layouts/partials/scripts.html b/src/layouts/partials/scripts.html index 4b14b0bff..bfc65d0c2 100644 --- a/src/layouts/partials/scripts.html +++ b/src/layouts/partials/scripts.html @@ -9,13 +9,13 @@ {{- $scripts := slice "js/application.js" "js/lazyload.js" -}} {{- range $scriptFile := $scripts -}} - {{- $script := resources.Get $scriptFile | js.Build $esbuildOptions | fingerprint -}} + {{- $script := resources.Get $scriptFile | js.Build $esbuildOptions -}} {{- if hugo.IsProduction -}} {{- $script = $script | resources.Minify -}} {{- end -}} - {{- $script = $script | resources.Copy (path.Join "/assets" $scriptFile) -}} + {{- $script = $script | fingerprint | resources.Copy (path.Join "/assets" $scriptFile) -}} {{- end -}}