angular in production mode code example
Example: angular production vs development mode
In angular 2+,
ng build --dev (development mode) ng build --prod (production mode)
produce different behaviours.
Development | Production
-------------------------------------------
Source Map | yes no
Extract CSS | css in .js css in .css
Minification | no yes
Tree Shaking | no yes
Compiler | JIT AOT