Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
 
PREVIOUS NEXT
Tagged: #angular #production #development #mode
ADD COMMENT
Topic
Name
6+5 =