在使用Angular CLI创建的Angular项目里,有一个angular.json配置文件:

什么是Angular的Target

其中architect节点下有几个子节点:

  • build
  • serve
  • extract-i18n
  • test
  • e2e

什么是Angular的Target

For example, the Architect builder invoked by the ng build command to compile a project uses a particular build tool, and has a default configuration whose values can be overridden on the command line.

例如,ng build命令可以触发Architect builder,将项目进行编译。

具体使用的builder为:@angular-devkit/build-angular:browser

什么是Angular的Target

build输出目录定义在options/outputPath里:

什么是Angular的Target

生产环境下的build参数:

什么是Angular的Target

environment.ts和environment.prod.ts的区别:

什么是Angular的Target
什么是Angular的Target

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
什么是Angular的Target

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-11-07
  • 2021-11-03
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2021-11-08
  • 2021-12-28
  • 2023-03-10
  • 2021-07-18
相关资源
相似解决方案