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

This commit is contained in:
jake committed 2021-06-26 19:16:54 -04:00
1 parent 943b426970
commit f5f64eb87e
6 files changed
+477 -119

No files matched your search

+1 -1
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>