Skip to content Skip to sidebar Skip to footer

Compiling Dart Into Minifier Friendly Javascript: From Dartdevc Into Google-closure-compiler

What compiler options are best to ensure that dartdevc generates minifier friendly javascript code which can be compressed by google closure compiler in ADVANCED mode. Please show

Solution 1:

The dartdevc compiler is not meant for production usage at this time, and does not support any sort of "advanced" optimizations (such as those done by the Google Closure Compiler). Our only supported optimization path is using dart2js, our optimizing compiler which in many cases is as good as or better the Google Closure Compiler.

See "When should I use dartdevc" on our FAQ page:

Use dartdevc whenever you’re actively working on your code.

Keep using dart2js to build your deployed, production application. With dart2js you get advanced optimizations such as tree shaking to minimize downloaded code size.

I'm excited you'd like to see dartdevc work for more use cases, but we are concentrating on a great developer experience and keeping optimization usage in dart2js at this time.

Post a Comment for "Compiling Dart Into Minifier Friendly Javascript: From Dartdevc Into Google-closure-compiler"