Compile JS with --minify.

This commit is contained in:
Natalie Weizenbaum 2017-02-16 17:37:31 -08:00
parent f00c6c8c5d
commit 4bc2770333
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,9 @@
* Trust type annotations when compiling to JavaScript, which makes it
substantially faster.
* Compile to minified JavaScript, which decreases the code size substantially
and makes startup a little faster.
## 1.0.0-alpha.9
* Elements without a namespace (such as `div`) are no longer unified with

View File

@ -58,6 +58,7 @@ js() {
_ensureBuild();
var destination = new File('build/sass.dart.js');
Dart2js.compile(new File('bin/sass.dart'), outFile: destination, extraArgs: [
'--minify',
'--trust-type-annotations',
'-Dnode=true',
'-Dversion=$_version',