如何将https://github.com/sass/dart-sass与angular2dart一起使用。 例如,我有以下组件:
@Component(
selector: 'start-app',
directives: const[MaterialInputComponent],
styleUrls: const ['login_component.css'],
templateUrl: 'login_component.html')
现在我不想使用css,而是想使用sass。
答案 0 :(得分:3)
我认为目前没有一种简单的方法,因为没有变压器。您可以做的是构建一些搜索器或脚本文件,搜索所有文件并将它们编译为CSS。例如,您可以使用https://github.com/dart-lang/build,但需要进行一些开发。它不会做任何开箱即用的事情
我建议在工具可用之前使用https://pub.dartlang.org/packages/dart_sass_transformer。