Try resolving integrity error

This commit is contained in:
Victoria 2019-03-18 15:20:04 -04:00
parent 31520b6f78
commit bb6c4c6c74

View file

@ -8,11 +8,11 @@
{{ $cssOpts := (dict "targetPath" "/css/main.css" ) }} {{ $cssOpts := (dict "targetPath" "/css/main.css" ) }}
{{ $postCSSOpts := (dict "use" "autoprefixer" ) }} {{ $postCSSOpts := (dict "use" "autoprefixer" ) }}
{{ $bundle := $bundleRaw | toCSS $cssOpts | postCSS $postCSSOpts | minify | fingerprint }} {{ $bundle := $bundleRaw | toCSS $cssOpts | postCSS $postCSSOpts | minify | fingerprint }}
<link rel="stylesheet" href="{{ $bundle.RelPermalink }}" integrity="{{ $bundle.Data.Integrity }}" media="screen"> <link rel="stylesheet" href="{{ $bundle.RelPermalink }}" integrity="{{ $bundle.Data.Integrity }}" crossorigin="anonymous" media="screen">
{{ end }} {{ end }}
<!-- Custom css --> <!-- Custom css -->
{{ range .Site.Params.customCSS -}} {{ range .Site.Params.customCSS -}}
{{ $style := resources.Get . }} {{ $style := resources.Get . }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" media="screen"> <link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" crossorigin="anonymous" media="screen">
{{- end }} {{- end }}