10 lines
349 B
HTML
10 lines
349 B
HTML
{{ $js := resources.Get "javascripts/main.js" }}
|
|
{{ with $js }}
|
|
{{ $secureJS := . | js.Build }}
|
|
{{ if not $.Site.Params.debug }}
|
|
{{ $secureJS = $secureJS | minify }}
|
|
{{ end }}
|
|
{{ $secureJS = $secureJS | fingerprint }}
|
|
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
|
{{ end }}
|