Building a Release Version with the CLI
Discover how to use the Angular CLI to build production-ready release versions of your application. Explore the ng build and ng build --watch commands to compile your TypeScript into optimized JavaScript files, generate the distribution folder, and manage automatic rebuilds while making final code tweaks.
We'll cover the following...
ng build command
The first thing we’re going to be looking at is how we can use the Angular CLI (hopefully, by now, you know how helpful the Angular CLI is) to create a production build.
So far, we’ve seen commands such as ng serve and ng test that we can use to either run the application locally in the browser or run through all our unit tests. There is another command we can run in the CLI that will create a release version of the application. The new command is as follows: ...