Add Template parsing to scss

This commit is contained in:
Patrick Neff 2019-01-08 05:11:09 +01:00
parent 11661d6c77
commit c6cebb82c5
1 changed files with 1 additions and 1 deletions

View File

@ -11,6 +11,6 @@
{{- if .Site.IsServer -}} {{- if .Site.IsServer -}}
{{- $options := (dict "targetPath" "css/style.css" "enableSourceMap" true) -}} {{- $options := (dict "targetPath" "css/style.css" "enableSourceMap" true) -}}
{{- end -}} {{- 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 -}} {{- $sass = $sass | resources.Fingerprint -}}
<link rel="stylesheet" href="{{ $sass.Permalink }}" integrity="{{ $sass.Data.Integrity }}"> <link rel="stylesheet" href="{{ $sass.Permalink }}" integrity="{{ $sass.Data.Integrity }}">