Check out example codes for "use PurifyCSS with hugo". It will help you in understanding the concepts better.

Code Example 1

{{ $styles := resources.Get "scss/main.scss" | toCSS | postCSS | minify }}
    <style>
        {{- $styles.Content | safeCSS -}}
    </style>

Learn ReactJs, React Native from akashmittal.com