From the course: Learning the Angular CLI

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

A build pipeline for an Angular app

A build pipeline for an Angular app - Angular Tutorial

From the course: Learning the Angular CLI

Start my 1-month free trial

A build pipeline for an Angular app

- [Instructor] There are many steps involved in building an Angular application. Since Angular apps are written in TypeScript in ES6 and beyond, the build pipeline is quite involved. We need to transpile TypeScript and ES6 code, bundle our application into one file or split across many, minify files by removing new lines in white space, and also generate source maps. Aside from that, we also need to deal with CSS and other assets. We need to compile from Sass to CSS, inlining CSS, dealing with scoped styles, and copying or inlining images. As you can see, the process is very involved, but the CLI takes care of all with a simple command: ng build. As you may have guessed, there are also several options for the build command. Let's cover them in detail.

Contents