Hugo - SASS and @use

Hi,
I try adding a bit more modularity to my page with SASS/SCSS files. I tried to @use for a partial (like written in the docs), but it didn’t work out. So, I doublechecked, and it seems @import is the way to go with Hugo.
However, the SASS documentation mentions issues with @import and announces the deprecation of that method soon. Moreover, it seems Dart SASS is the only library supporting it yet, while LibSass and Ruby Sass aren’t.

My question is, which SASS interpreter Hugo uses and are there plans to include the @use method soon? You guys probably use some SASS interpreter, so you’ll bound to the implementation there. But you’re for sure better informed than I, who never used GO.

For me, it’s good to know to decide if I should postpone the move to SASS with my CSS files. =)

Thanks,
Sandro

2 Likes

We use LibSass, and you need to ask them about the “when”.

2 Likes

Great! Thank you for the information.

Just to be sure:
If LibSass releases a new version, it updates for HUGO if there is a version bump right? So no automated pull of the current LibSass version.

Best,
Sandro

No automation, but you can follow this module: https://github.com/bep/golibsass

Hugo is on the latest LibSass release (unlike Node that uses something older).

3 Likes

Thank you again!
In case I get a time frame from the LibSass people I’ll update this post.

2 Likes

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