1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-30 03:05:58 -04:00

process SCSS @import rules with postcss-import

This commit is contained in:
2020-10-03 19:24:27 -04:00
parent 06c9cfe070
commit 9543aaa5b0
13 changed files with 149 additions and 101 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "sass/main.scss" . | resources.ToCSS (dict "targetPath" "css/main.css" "includePaths" (slice "node_modules/")) | resources.PostCSS (dict "config" "postcss.config.js") }}
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "sass/main.scss" . | resources.ToCSS (dict "targetPath" "css/main.css") | resources.PostCSS (dict "config" "postcss.config.js") }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{/* Page-specific styles set via front matter, piped through PostCSS and inlined */}}