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” Sta...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers