-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Sass @use for partials instead of deprecated @import #7380
Comments
You need to watch this project for progress on this: https://github.com/sass/libsass I doubt that @import is going away soon ... LibSASS is used by many, including the big Node/JS community. |
On the libsass project page, it says that the use of libsass is deprecated and it's unlikely that this feature will be added:
I can't find and issue for migrating to Dart Sass yet. Should this issue be updated for that or should a new issue be created for moving to Dart Sass? |
I just ran across this problem myself; it was a little non-obvious to work around and documentation to this point as a limitation note or work towards supporting |
@michaeltlombardi see my work in https://github.com/bep/godartsass -- my main head scratch now is that the upstream project (the Dart Sass Embedded Protocol) is still in beta5, but I suspect this will not take too long to get into Hugo (I will maybe add it as a beta feature, as it seems to work great). |
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hugo extended 0.72 seems to only support @import, not @use which is preferred.
I'm new to sass, and hugo. I went to the SASS guide, took the first working example on that page that uses a partial (sass include, import, however you want to call it), and had:
and next to that, in assets/_base.scss:
The resulted site server using
hugo server
says:Which can be worked around by changing the @use to @import and referring to $primary-color directly, without the namespace prefix
base.
.The text was updated successfully, but these errors were encountered: