We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7fb33 commit 788dd49Copy full SHA for 788dd49
layouts/partials/footer/components/script.html
@@ -1,12 +1,12 @@
1
{{- partial "helper/external" (dict "Context" . "Namespace" "Vibrant") -}}
2
3
{{- $opts := dict "minify" hugo.IsProduction -}}
4
-{{- $script := resources.Get "ts/main.ts" | js.Build $opts -}}
+{{- $script := resources.Get "ts/main.ts" | js.Build $opts | fingerprint -}}
5
6
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
7
8
{{- with resources.Get "ts/custom.ts" -}}
9
{{/* Place your custom script in HUGO_SITE_FOLDER/assets/ts/custom.ts */}}
10
- {{- $customScript := . | js.Build $opts -}}
+ {{- $customScript := . | js.Build $opts | fingerprint -}}
11
<script type="text/javascript" src="{{ $customScript.RelPermalink }}" defer></script>
12
{{- end -}}
0 commit comments