{{ $js := resources.Get .src | js.Build -}} {{ if hugo.IsProduction -}} {{ $js = $js | minify | fingerprint -}} {{- else -}} {{- end -}}