sass_builder 0.0.1 
sass_builder: ^0.0.1 copied to clipboard
Transpile sass files using the "build" package.
sass_builder #
Transpile sass files using the "build" package.
Usage #
- create 
pubspec.yamlcontaining next code: 
dependencies:
    bootstrap_sass: any # this dependency is only for demo purpose
dev_dependencies:
    sass_builder: 0.0.1 # change it for latest version
- create 
web/main.scssfile and add next code: 
@import "sub";
@import "package:bootstrap_sass/scss/variables";
.a {
  color: blue;
}
.c {
  color: $body-color;
}
- create 
web/_sub.scssfile and add next code: 
.b {
  color: red;
}
- create 
tool/build.dartfile and add next code: 
import 'dart:async';
import 'package:build_runner/build_runner.dart';
import 'package:sass_builder/phase.dart';
Future main() async {
  await build(new PhaseGroup()..addPhase(sassPhase));
}
- run 
tool/build.dartand the fileweb/main.csswill be generated containing next code: 
.b {
  color: red;
}
.a {
  color: blue;
}
.c {
  color: #373a3c;
}