mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
Don't compile to JS in minified mode
The JS size doesn't really matter on the server side, and this makes profiling the release-mode binary substantially easier, as well as improving the quality of stack traces provided by downstream users.
This commit is contained in:
parent
0e47e03305
commit
a841882724
@ -40,7 +40,10 @@ void _js({@required bool release}) {
|
||||
// * We expect our test coverage to ensure that nothing throws subtypes of
|
||||
// Error.
|
||||
// * We thoroughly test edge cases in user input.
|
||||
if (release) ...["-O4", "--fast-startup"]
|
||||
//
|
||||
// We don't minify because download size isn't especially important
|
||||
// server-side and it's nice to get readable stack traces from bug reports.
|
||||
if (release) ...["-O4", "--no-minify", "--fast-startup"]
|
||||
]);
|
||||
var text = destination
|
||||
.readAsStringSync()
|
||||
|
Loading…
Reference in New Issue
Block a user