In an Angular project created using the Angular CLI, there is an angular.json configuration file:

There are several child nodes under the Architect node:

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

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.

For example, the ng build command can trigger the Architect Builder to compile the project.

The builder is @angular-devkit/ build-Angular :browser

The build output directory is defined in options/outputPath:

Build parameters in production environment:

Environment.ts and environment.prod. Ts:



For more of Jerry’s original articles, please follow the public account “Wang Zixi “: