在使用Angular CLI创建的Angular项目里,有一个angular.json配置文件:
其中architect节点下有几个子节点:
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
build输出目录定义在options/outputPath里:
生产环境下的build参数:
environment.ts和environment.prod.ts的区别:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":