{{ $script := resources.Get "js/bundle.js" }} {{ $processedScript := $script | default $script }} {{ if not hugo.IsServer }} {{ $processedScript = $script | minify | fingerprint }} {{ end }}