Is Dart integrated with SASS? Is Dart integrated with SASS? dart dart

Is Dart integrated with SASS?


Dart 2In Dart 2 with build_runner just add

dev_dependencies:  sass_builder: ^1.1.2

to pubspec.yaml

Dart 1

Use instead

@Component( styleUrls: 'style.css')

and add a sass transformer to your pubspec.yaml

https://pub.dartlang.org/packages/dart_sass_transformer

dependencies:  dart_sass_transformer: ^0.5.0transformers:  - dart_sass_transformer:

then style.sass or style.scss will automatically be transformed to style.css and made available to Angular components

You need to run pub get --packages-dir until https://github.com/sass/dart-sass/pull/53 becomes available.