{{/* We only want to run this process if there's a JS file */}} {{ if (fileExists "./assets/output/index.js") }} {{ $js := resources.Get "output/index.js" }} {{ with $js }} {{ $secureJS := . | resources.Fingerprint }} {{ end }} {{ end }}