Welcome to mirror list, hosted at ThFree Co, Russian Federation.

script-src.html « alpinejs « jslibs « partials « layouts « alpinejs - github.com/gohugoio/hugo-mod-jslibs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 43222a77dab5afb75b45e725a67fe352b9387cef (plain)
1
2
3
4
5
6
7
{{- $isProd := hugo.IsProduction -}}
{{- $js := resources.Get "jslibs/alpinejs/alpine.js" -}}
{{- $js11 := resources.Get "jslibs/alpinejs/alpine-ie11.js" -}}
{{- if $isProd }}{{ $js = $js | minify | fingerprint }}{{ end -}}
{{- if $isProd }}{{ $js11 = $js11 | minify | fingerprint }}{{ end -}}
<script type="module" src="{{ $js.RelPermalink }}" {{ if $isProd }} integrity="{{ $js.Data.Integrity }}" {{ end }}></script>
<script nomodule src="{{ $js11.RelPermalink }}" {{ if $isProd }} integrity="{{ $js11.Data.Integrity }}" {{ end }} defer></script>