snippetbashTip
ng build — Compile an Angular application or library into an output directory named `dist/`. More information:
Viewed 0 times
angularcommandlibrarycompilecling buildintoapplication
Problem
How to use the
ng build command: Compile an Angular application or library into an output directory named dist/. More information: <https://angular.dev/cli/build>.Solution
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 {{[b|build]}}Specify the output path relative to the workspace root:
ng {{[b|build]}} --output-path {{path/to/directory}}Enable Ahead-of-Time (AOT) compilation:
ng {{[b|build]}} --aotShow build progress in the console:
ng {{[b|build]}} --progressDisplay additional verbose output during the build:
ng {{[b|build]}} --verboseAutomatically clear the terminal screen during rebuilds:
ng {{[b|build]}} --clear-screenRebuild automatically when source files change:
ng {{[b|build]}} --watchCode Snippets
Build an Angular application or library
ng {{[b|build]}}Specify the output path relative to the workspace root
ng {{[b|build]}} --output-path {{path/to/directory}}Enable Ahead-of-Time (AOT) compilation
ng {{[b|build]}} --aotShow build progress in the console
ng {{[b|build]}} --progressDisplay additional verbose output during the build
ng {{[b|build]}} --verboseContext
tldr-pages: common/ng build
Revisions (0)
No revisions yet.