remove HTML comments by default during minify

This commit is contained in:
jake committed 2020-05-14 20:51:49 -04:00
1 parent 8219c611a4
commit 0ad9d54347
6 files changed
+37 -29

No files matched your search

+5 -3
View File
@@ -6,7 +6,9 @@
{{- $target := path.Join $.File.Dir "css/inline.scss" }}
{{- $css := . | resources.FromString $target | resources.ToCSS | resources.PostCSS (dict "config" "postcss.config.js") -}}
<style>
{{ $css.Content | safeCSS }}
</style>
{{ printf "<!-- htmlmin:ignore -->" | safeHTML -}}
<style>
{{ $css.Content | safeCSS }}
</style>
{{- printf "<!-- htmlmin:ignore -->" | safeHTML }}
{{ end }}