dart compile js <dart-entry-point>
Compile Dart to JavaScript
Arguments
Name | Description |
---|
dart-entry-point | The Dart file containing the main function |
Options
Name | Description |
---|
-h, --help | Print this usage information |
-o, --output <dart-entry-point> | Write the output to <file-name> |
--verbosity <verbosity-level> | Sets the verbosity level of the compilation |
-m, --minified | Generate minified output |
-D, --define <key-value-pairs...> | Define an environment declaration. To specify multiple declarations, use multiple options or use commas to separate key-value pairs. For example: dart compile aot-snapshot -D a=1,b=2 main.dart |