dartdevc 命令
The Dart development compiler (dartdevc, also known as _DDC)_lets you run and debug your Dart web app in the Chrome browser.
Note: The dartdevc compiler is for development only. Continue to use dart2js to compile for deployment.
Unlike dart2js,dartdevc supports incremental compilation and emits modular JavaScript.With a tool like webdev serve that uses dartdevc,you can edit your Dart files,refresh in Chrome,and see your edits almost immediately.This speed is possible because dartdevc compiles only updated modules,not all the packages that your app depends on.
The first compilation with dartdevc takes the longest,because the entire app must be compiled.After that, as long as the serve command keeps running,refresh times with dartdevc are much faster than with dart2js.
More information
- dartdevc: FAQ
- webdev, which uses dartdevc by default when serving and testing web apps