git commit -am "Remove resource fingerprinting"
This commit is contained in:
parent
b344dad7bf
commit
2cfeddd430
|
|
@ -11,6 +11,5 @@
|
|||
{{- if .Site.IsServer -}}
|
||||
{{- $options := (dict "targetPath" "css/style.css" "enableSourceMap" true) -}}
|
||||
{{- end -}}
|
||||
{{- $options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "enableSourceMap" true) -}}
|
||||
{{- $sass := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.PostCSS | resources.Fingerprint "sha512" -}}
|
||||
<link rel="stylesheet" href="{{ $sass.Permalink }}" integrity="{{ $sass.Data.Integrity }}">
|
||||
{{- $sass := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.PostCSS -}}
|
||||
<link rel="stylesheet" href="{{ $sass.Permalink }}">
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
{{- $js := resources.Get "js/bundle.js" -}}
|
||||
{{- $js = $js | resources.Fingerprint "sha512" -}}
|
||||
<script type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}"></script>
|
||||
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue