Can you pass compiler flags to dart2js via Dart Editor

佐手、 提交于 2019-12-23 12:03:29

问题


I want to run a no minify build but not from Terminal. Can I do it form the Dart Editor IDE itself?


回答1:


Dart2JS can be configured using pubspec.yaml Configuring the Built-in dart2js Transformer. You also need a custom launch configuration until DartEditor's internal web server is replaced by pub serve which is work in progress.




回答2:


Under Run -> Manage Launches you can create a new Dart2js launch and pass in whatever compiler flags you want.



来源:https://stackoverflow.com/questions/22054960/can-you-pass-compiler-flags-to-dart2js-via-dart-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!