Before going into details, please read how build is different from transformers.
dev_dependencies:
sass_builder:
git: https://github.com/daniel-v/dart_sass_builder.gitThe convention I follow:
- have
toolfolder - have a
tool\build.dartfile that contains all the build phases, Sass compilation is one of them
In the build file, specify what where you sass files are:
SassBuilder.addPhases(phases, graph, ['lib/**/*.scss']);pub run tool/build.dart && pub serveYou can now open your browser at http://localhost:8080/
Alternatively you can activate it as a global package
pub global activate --source git https://github.com/daniel-v/dart_sass_builder.gitand run sass-builder in the folder where your pubspec.yaml and sass_builder.yaml files are.