{{ $js := resources.Get "js/_bundle.js" | js.Build (dict "targetPath" "/js/app.js") | resources.Babel (dict "config" "babel.config.json" "noComments" true) }} {{- .Scratch.Set "bundlePermalink" $js.Permalink -}} {{- define "__preload_js" -}} {{- end -}} {{- define "__body_js" -}} {{- end -}}