gpt4 book ai didi

sass - 在 AngularDart 5 和 Dart 2 中使用 SCSS 样式文件

转载 作者:行者123 更新时间:2023-12-04 09:38:48 25 4
gpt4 key购买 nike

我正在与 一起工作 Dart 2 AngularDart 5 .

⚠ 我在网上搜索了我的问题,但没有找到满意的答案。

❔ 有人能解释一下我需要包含和使用的所有步骤 SCSS 我的 AngularDart 应用程序中的样式文件?

我从您可以找到的快速入门应用程序开始 here .

谢谢!

最佳答案

  • sass_builder:
    ^2.0.0
    向您的 pubspec.yaml 添加开发依赖项.
  • 运行 pub get下载新的依赖项。
  • 创建一个 sass 文件,例如:lib/app_component.scss并为其添加一些样式。
  • 添加一个 已编译 css 样式表添加到您的 @Component 注释 lib/app_component.dart :styleUrls: const ['app_component.css'],

  • css 文件将在构建过程中由 sass_builder 生成。

    关于sass - 在 AngularDart 5 和 Dart 2 中使用 SCSS 样式文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50609938/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com