blob: 16dafa4791d1479a58bb49c8a5f8e07510d2a765 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{{ with resources.Get . }}
{{ if hugo.IsProduction }}
{{ with . | js.Build (dict "minify" true "sourceMap" "external") | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}"></script>
{{ end }}
{{ else }}
{{ with . | js.Build }}
<script src="{{ .RelPermalink }}"></script>
{{ end }}
{{ end }}
{{ end }}
|