feat: Add integrity on js file
This commit is contained in:
parent
6fcd396876
commit
fca32ec52a
|
@ -1,5 +1,5 @@
|
|||
{{ $main := resources.Get "js/main.js" }}
|
||||
{{ with $main }}
|
||||
{{ $js := . | resources.Minify | fingerprint }}
|
||||
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
|
||||
{{ $js := resources.Get "js/main.js" }}
|
||||
{{ with $js }}
|
||||
{{ $secureJS := . | resources.Minify | resources.Fingerprint }}
|
||||
<script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue