git commit -am "Remove resource fingerprinting"

This commit is contained in:
Patrick Neff 2019-01-08 01:06:41 +01:00
parent b344dad7bf
commit 2cfeddd430
2 changed files with 3 additions and 5 deletions

View File

@ -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 }}">

View File

@ -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>