I am using Angular6 and I was wondering if it was better to set "vendorChunk" to true or false in production. I know what it does, but I am not sure of the best value to use in production.
It depends on your use case.
The advantage of not having a separate vendor chunk is that you'll be able to get a smaller bundle size. How much smaller depends on your app. I suggest trying a build with and without the flag to see if there is a significant difference.
On the other hand, the main advantage of having vendorChunk enabled is that the users will be able to only download the changed client code without the third party code(Which are less likely to be changed often).
In summary:
Set vendorChunk to true if:
Set vendorChunk to false if:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With