Apologies if this has been asked before or described somewhere, but I couldn’t find it.
Basically, I have a pretty standard project built using the new Aurelia CLI bundler. For production builds, we have revisions enabled to make sure the latest bundles get loaded when clients connect. This all works great.
My problem is actually that it somehow doesn’t feel right that my 3Mb vendor bundle changes every time I make even just a small change in my app code. I have come to the conclusion that this is the case because the app bundle is loaded by the vendor bundle, and since the filename for the app bundle changed, so does the vendor bundle contents. So if I change <h4>Heading<h4>
to <h3>Heading<h3>
I have to redeploy both vendor bundle and app bundle because both their filenames have changed.
What I’m asking is if there is a way to break this out somehow? Perhaps have an entry bundle that loads the vendor bundle and then the app bundle. In that case, when the change is made, the app bundle and entry bundle filename will change, but entry bundle should only be very small (because it’s only loading the other 2 files), and vendor bundle stays the same thus not needing to redeploy a 3Mb file.
Looking forward to hearing about solutions.