I want to activate Differential Loading only in production builds. The reason is that I don't want dev build to take too long.
Since Differential loading is derived from browserlist content, I'd like to configure different browserlist for each build.
This is the browserlist for dev:
> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11
And this for prod:
> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11
I activate my dev and prod build with those commands:
dev: ng build
prod: ng build --prod
Pretty standard.