Angular CLI - why does <ng serve> bundle better than <ng build>?
问题 Performing a number of Angular CLI commands in order to build the minified basic project: ng new project cd project ng build --prod ... as a result, I get the generated dist folder with a number of bundles. The largest one is called vendor.[hash].js and it's size about 855kB . However, if I perform ng serve --prod instead: ng new project cd project ng serve --prod ... I can see the loaded by localhost:4200 vendor's bundle weight is about 300kB using Chrome console. Why is that happens? Is