Используйте purifycss с Hugo
{{ $styles := resources.Get "scss/main.scss" | toCSS | postCSS | minify }}
<style>
{{- $styles.Content | safeCSS -}}
</style>
Successful Snail