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

解决 dart-sass 1.80.0+ 的编译警告 #161

Open
RalXYZ opened this issue Nov 1, 2024 · 0 comments
Open

解决 dart-sass 1.80.0+ 的编译警告 #161

RalXYZ opened this issue Nov 1, 2024 · 0 comments
Assignees
Labels
bug ISSUE: Something isn't working

Comments

@RalXYZ
Copy link
Collaborator

RalXYZ commented Nov 1, 2024

背景:在 #158 ,我们把 CI 中的 ruby-sass 替换为了 dart-sass

dart-sass 版本达到 1.80.0 以上后,在编译阶段会出现新警告。具体内容,参见 这个 CI job 的 compile 部分,以下贴出缩略版 log:

 ╷
1 │ @import "./settings.scss";
 │         ^^^^^^^^^^^^^^^^^
 ╵
   build/scss/include.scss 1:9           @import
   build/headers/windows/light.scss 4:9  root stylesheet

DEPRECATION WARNING: 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

访问 sass import 帮助文档,得知,我们项目的相关写法从 dart-sass 1.80.0 起被列为 deprecated,该写法将会在 3.0.0 移除。

虽然我不是很懂为什么 sass 社区在 2.0.0 没有稳定前就开始规划 3.0.0,但既然编译器这样报错了,那我们作为用户也只能尽早修复。

@RalXYZ RalXYZ added the bug ISSUE: Something isn't working label Nov 1, 2024
@RalXYZ RalXYZ self-assigned this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ISSUE: Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant