Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure dart2js options from Dart Editor?

I use Dart Editor to launch my app into Chrome or Firefox. I'd like to control the command-line options that are passed to dart2js by Dart Editor. For example, I want to minify the code. How can I do this?

like image 393
Seth Ladd Avatar asked Sep 12 '13 10:09

Seth Ladd


1 Answers

Click the little drop-down arrow to the right of the green Run icon:

enter image description here

Then select "Manage Launches".

Then, find your run config for your app.

enter image description here

Add --minify to the "Compiler flags".

To find a list of available flags, run dart2js --help from the command line (assuming the Dart SDK is on your path).

like image 114
Seth Ladd Avatar answered Oct 10 '22 01:10

Seth Ladd