ng build
Compile an Angular application or library into an output directory named
dist/. More information: https://angular.dev/cli/build.
- Build an Angular application or library:
ng
- Specify the output path relative to the workspace root:
ng --output-path
- Enable Ahead-of-Time (AOT) compilation:
ng --aot
- Show build progress in the console:
ng --progress
- Display additional verbose output during the build:
ng --verbose
- Automatically clear the terminal screen during rebuilds:
ng --clear-screen
- Rebuild automatically when source files change:
ng --watch
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
