Converting SCSS

Hello. I haven’t touched Hugo in awhile and it seems the old syntax to convert scss to CSS has been deprecated. I’m sure I’m missing something simple here, but the current documentation isn’t clear for laymen to be frank.

My current pipe is:

$css := resources.Get "main.scss" | resources.Sass | minify

I also tried css.Sass and gives this error:
“execute of template failed … can’t evaluate field Sass in type interface {}”

Well I gave up too soon. The function just needs to be “css.Sass”
Issue has been resolved.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.