Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

use PurifyCSS with hugo

{{ $styles := resources.Get "scss/main.scss" | toCSS | postCSS | minify }}
    <style>
        {{- $styles.Content | safeCSS -}}
    </style>
Source by discourse.gohugo.io #
 
PREVIOUS NEXT
Tagged: #PurifyCSS #hugo
ADD COMMENT
Topic
Name
1+9 =