What is angular ngc?
ngc stands fore Angular Compiler. It is a tool that compiles Angular applications. ngc was built on tsc(TypeScript Compiler) and extends it to support Angular.
Angular compile options
You can see the ngc compile options in the tsconfig.json file under your Angular project root.
We can see that the output directory is set to dist/out-tsc. and there is a special section angularCompilerOptions used for angular.
1 | { |
Run ngc manually
You can run ngc manually by using the command ngc in the terminal. and then found the compiled files in the dist/out-tsc directory.
References
https://blog.angular.io/how-the-angular-compiler-works-42111f9d2549