Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Dart Editor 在 Chrome 或 Firefox 中启动我的应用程序。我想控制 Dart Editor 传递给 dart2js 的命令行选项。例如,我想缩小代码。我怎样才能做到这一点?
单击绿色运行图标右侧的小下拉箭头:
然后选择“管理启动”。
然后,找到您的应用程序的运行配置。
添加--minify到“编译器标志”。
--minify
要查找可用标志的列表,请从命令行运行dart2js --help(假设 Dart SDK 在您的路径上)。
dart2js --help