mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-30 04:39:03 +01:00
Pass --omit-implicit-checks to dart2js in release mode (#473)
Substantially addresses #113
This commit is contained in:
parent
1a5eb2a2e3
commit
918a3fedf2
@ -1,3 +1,9 @@
|
|||||||
|
## 1.13.4
|
||||||
|
|
||||||
|
### Node JS
|
||||||
|
|
||||||
|
* Tweak JS compilation options to substantially improve performance.
|
||||||
|
|
||||||
## 1.13.3
|
## 1.13.3
|
||||||
|
|
||||||
* Properly generate source maps for stylesheets that emit `@charset`
|
* Properly generate source maps for stylesheets that emit `@charset`
|
||||||
@ -38,7 +44,7 @@
|
|||||||
* Add a `SassException` type that provides information about Sass compilation
|
* Add a `SassException` type that provides information about Sass compilation
|
||||||
failures.
|
failures.
|
||||||
|
|
||||||
### JS API
|
### Node JS API
|
||||||
|
|
||||||
* Remove the source map comment from the compiled JS. We don't ship with the
|
* Remove the source map comment from the compiled JS. We don't ship with the
|
||||||
source map, so this pointed to nothing.
|
source map, so this pointed to nothing.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: sass
|
name: sass
|
||||||
version: 1.13.3
|
version: 1.13.4
|
||||||
description: A Sass implementation in Dart.
|
description: A Sass implementation in Dart.
|
||||||
author: Dart Team <misc@dartlang.org>
|
author: Dart Team <misc@dartlang.org>
|
||||||
homepage: https://github.com/sass/dart-sass
|
homepage: https://github.com/sass/dart-sass
|
||||||
|
@ -35,7 +35,7 @@ void _js({@required bool release}) {
|
|||||||
'-Dversion=$version',
|
'-Dversion=$version',
|
||||||
'-Ddart-version=$dartVersion',
|
'-Ddart-version=$dartVersion',
|
||||||
];
|
];
|
||||||
if (release) args..add("--minify")..add("--trust-type-annotations");
|
if (release) args..add("--minify")..add("--omit-implicit-checks");
|
||||||
|
|
||||||
Dart2js.compile(new File('bin/sass.dart'),
|
Dart2js.compile(new File('bin/sass.dart'),
|
||||||
outFile: destination, extraArgs: args);
|
outFile: destination, extraArgs: args);
|
||||||
|
Loading…
Reference in New Issue
Block a user