Merge pull request #122 from sass/trust-type-annotations

Tweak JS compilation arguments.
This commit is contained in:
Natalie Weizenbaum 2017-02-18 11:57:49 -08:00 committed by GitHub
commit 32f3789022
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,11 @@
## 1.0.0-alpha.10
* 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

@ -1,5 +1,5 @@
name: sass
version: 1.0.0-alpha.9
version: 1.0.0-dev
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass

View File

@ -58,6 +58,8 @@ 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',
'-Ddart-version=$_dartVersion',