How do you build your Angular application using Angular CLI for use on production environment?

Experience Level: Junior
Tags: AngularAngular CLI


To build an Angular application for production environment, run the following command from the command line:

ng build --prod

By using the parameter --prod you are telling Angular CLI that it should do production optimizations. These take longer to process, but the resulting code will have smaller footprint and it will load faster as the files will be bundled and minified.


No Comments Yet.
Be the first to tell us what you think.
Angular CLI for beginners
Angular CLI for beginners

Are you learning Angular CLI ? Try our test we designed to help you progress faster.

Test yourself