Builds, configuration and secrets
Learn Builds, configuration and secrets (Module 24 · Deployment and DevOps, Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Development build versus production build • The Angular development build ( ng serve or ng build --configuration development ) is quick to produce: no minification, source maps on, readable code. • The production build ( ng build , since v12 the default configuration) does ahead-of-time compilation, tree-shaking , minification, and adds a content hash to file names ( main-A1B2C3.js ) so browsers cache safely. Output goes to dist/<project>/browser (v17+ application builder). • Analogy: development is a rough draft with notes in the margin; production is the printed, proofread book.