1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-12-03 03:48:55 -05:00

move css minification from postcss to webpack (for better source maps)

This commit is contained in:
2021-06-26 19:16:54 -04:00
parent 943b426970
commit f5f64eb87e
6 changed files with 477 additions and 119 deletions

View File

@@ -10,7 +10,7 @@
{{- with .Params.css -}}
{{/* NOTE: This file doesn't end up getting published (which is good) */}}
{{- $target := path.Join $.File.Dir "css/inline.scss" -}}
{{- $css := . | resources.FromString $target | resources.PostCSS (dict "config" "postcss.config.js") -}}
{{- $css := . | resources.FromString $target -}}
<style>
{{ $css.Content | safeCSS }}
</style>