Skip to content
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

decap-cms @import rules are deprecated #253

Closed
pleasantone opened this issue Dec 29, 2024 · 2 comments · Fixed by #255 or #256
Closed

decap-cms @import rules are deprecated #253

pleasantone opened this issue Dec 29, 2024 · 2 comments · Fixed by #255 or #256

Comments

@pleasantone
Copy link
Contributor

pleasantone commented Dec 29, 2024

In assets/decap-cms/scss/index.scss.tmpl we are using @import.

WARN  Dart Sass: DEPRECATED [import]: /Users/pst/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugomods/decap-cms@v0.16.1/assets/decap-cms/scss/index.scss.tmpl:0:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import
WARN  Dart Sass: DEPRECATED [import]: /Users/pst/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugomods/decap-cms@v0.16.1/assets/decap-cms/scss/index.scss.tmpl:1:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

Not related to #221, standalone issue as well.

@razonyang
Copy link
Member

razonyang commented Dec 30, 2024

Since libsass is still supported, we won't drop import rule at this moment (libsass doesn't support use rule) until Dart Sass 3 was released, libsass was removed from Hugo, but those warnging should be filterable, I will take a look tonight.

@razonyang
Copy link
Member

Done, the latest version of this module should remove those warnings (I filtered them out, not resolved).

PS: Requires Hugo 0.139.0 or above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants