Writing A Custom Angular Build
summary
Shows how to replace the CLI with a small Node-based build that actually works: a custom NGS CLI, file-copy and config hooks, async/await task parallelism, exec vs spawn for running ngc AOT and a watcher, and Java-backed Closure Compiler for production bundles. Demonstrates copying only listed node_modules, formatting index.html, producing an ngFactory staging dir, and producing a single bundle about 60.9 KB and far fewer network requests so the build and optimization pipeline visibly succeed.
AI-written summary · about
chapters (14)
- 0:00Start
- 3:40Overview
- 4:49Prereq
- 11:47Code & Conf
- 12:38Files
- 14:41Macro View
- 15:35Micro View
- 16:12Sync Build
- 16:33promise chain
- 17:35Parallel Build
- 19:25tools
- 31:03commander
- 34:36Scaffold
- 52:10Absolute Paths
related talks
21mBeyond the Angular CLI
22mFine-Tuning Your Angular Workflow with Nx: Beyond the CLI
22mDeep Dive Into CLI Builders
27mExplore the power behind Angular CLI
25mUnleash the power of Angular CLI Builders
43mAngular CLI - Use the Power
27mng g talk-on-angular-console
28mCreate & Publish Angular Libs like a PRO
