mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 05:41:14 +01:00
Merge pull request #122 from sass/trust-type-annotations
Tweak JS compilation arguments.
This commit is contained in:
commit
32f3789022
@ -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
|
||||
|
@ -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
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user