python ruby-programming-language Smalltalk Vue.js Knockoutjs TypeScript JavaScript, OOPs JavaScript Angular 7, Interview Questions Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 4 Angular 2 AngularJs 1.x NodeJs Perl Programming R Programming RequireJs Rust Programming Backbonejs closure programming language go-programming-language kotlin-programming-language
Angular 4

Angular CLI - dev vs prod builds

The dev builds –
--dev/--target=development

The prod builds -
--prod/--target=production


Both are “meta” flags that set other flags and If you do not specify either you will get the dev default.

--dev defaults

Flag
--dev
--prod
--aot
false
true
--environment
dev
prod
--output-hashing
media
all
--sourcemaps
true
false
--extract-css
false
true
--named-chunks  
true
false
--build-optimizer
false
true with AOT and Angular 5
















The Prod also sets the following non-flag gable settings that are –
1.      Runs UglifyJS on the code
2.      Replaces “process.env.NODE_ENV” in modules with the production value
3.      Adds service worker if configured in “ .angular-cli.json”

Stayed InformedAngular 4 and Angular 5 Documents

I hope you are enjoying with this post! Please share with you friends. Thank you so much!
ANIL SINGH

Hi there! Welcome to my blog. My name is Anil Singh. I'm a author of this blog. For more detail about me, kindly refer to this link..
My Blogs - http://code-sample.com and http://code-sample.xyz
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like
www.code-sample.com/. Powered by Blogger.
ASK Questions