Add Template parsing to scss
This commit is contained in:
parent
11661d6c77
commit
c6cebb82c5
|
|
@ -11,6 +11,6 @@
|
|||
{{- if .Site.IsServer -}}
|
||||
{{- $options := (dict "targetPath" "css/style.css" "enableSourceMap" true) -}}
|
||||
{{- end -}}
|
||||
{{- $sass := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.PostCSS -}}
|
||||
{{- $sass := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "scss/bundle.scss" . | resources.ToCSS $options | resources.PostCSS -}}
|
||||
{{- $sass = $sass | resources.Fingerprint -}}
|
||||
<link rel="stylesheet" href="{{ $sass.Permalink }}" integrity="{{ $sass.Data.Integrity }}">
|
||||
|
|
|
|||
Loading…
Reference in New Issue