【问题标题】:same pubspec.yaml - build for both ddc and dart2js with debug相同的 pubspec.yaml - 为 ddc 和 dart2js 构建并进行调试
【发布时间】:2017-12-21 19:56:51
【问题描述】:

在项目的当前状态下,我想使用调试信息为 ddc 和 dart2js 构建。这可能与相同的pubspec.yaml 吗?

使用 ddc 的推荐设置,调试模式与 ddc 相关联。

web:
  compiler:
    debug: dartdevc

虽然dart2jsbuild 是在命令行中使用--mode=release 获得的。

我现在找到的唯一方法是取消/注释掉pubspec.yaml 中的ddc部分。

【问题讨论】:

    标签: build dart dart-dev-compiler


    【解决方案1】:

    您可以使用命令行标志代替pubspec.yaml 设置

    pub build --web-compiler=dartdevc
    

    另见https://webdev.dartlang.org/tools/dartdevc

    缺点是,IntelliJ 目前不允许为pub serveAFAIK 指定参数。

    【讨论】:

      猜你喜欢
      • 2015-04-26
      • 2018-06-01
      • 2020-01-23
      • 2014-02-21
      • 2020-05-21
      • 1970-01-01
      • 2012-07-26
      • 1970-01-01
      • 2017-06-21
      相关资源
      最近更新 更多