是否可以更改 Dart 中的默认构建目录?

Is it possible to change the default build directory in Dart?

当我运行pub build时,pub将编译好的app放入build/web。是否可以配置我的 pubspec.yaml 文件以将默认输出目录更改为 prod?

编辑:我试图避免每次都必须使用 --output 开关。

您可以使用pub build --output=someOtherDir
另见 pub help build