We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c0f87f commit 2dd7601Copy full SHA for 2dd7601
tool/grind.dart
@@ -58,13 +58,16 @@ package() async {
58
js() {
59
_ensureBuild();
60
var destination = new File('build/sass.dart.js');
61
- Dart2js.compile(new File('bin/sass.dart'), outFile: destination, extraArgs: [
62
- '--minify',
+
+ var args = [
63
'--trust-type-annotations',
64
'-Dnode=true',
65
'-Dversion=$_version',
66
'-Ddart-version=$_dartVersion',
67
- ]);
+ ];
68
+ if (Platform.environment["SASS_MINIFY_JS"] != "false") args.add("--minify");
69
70
+ Dart2js.compile(new File('bin/sass.dart'), outFile: destination, extraArgs: args);
71
var text = destination.readAsStringSync();
72
destination.writeAsStringSync(preamble.getPreamble() + text);
73
}
0 commit comments