Skip to content

Conversation

0tofu
Copy link
Collaborator

@0tofu 0tofu commented Jan 7, 2021

Lib Sassが非推奨となった為、Dart Sassを利用するように変更しました。

確認方法

Dart Sassのみ利用可能な @use 文が使えることにより挙動を確認

  • app/modules/custom/xxx/scss ディレクトリを生成.

    • 上記ディレクトリ内に styles.scss 及び _variables.scss を作成
  • _variables.scss に以下を記載

$main-color: #fff;
$sub-color: #ccc;
  • styles.scss に以下を記載
@use "variables";

div {
  background: variables.$main-color;
}
  • gulp build:scss を実行し app/modules/custom/xxx/cssstyle.css が生成されることを確認

@0tofu 0tofu requested a review from u7aro January 7, 2021 05:09
@u7aro
Copy link

u7aro commented Feb 16, 2021

確認が遅くなってすみません。実案件で試してみましたが問題なさそうなのでマージします。

@u7aro u7aro merged commit 00dfca5 into 9.x Feb 16, 2021
@u7aro u7aro deleted the feature-use-dart-sass branch June 24, 2025 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants