As we progress in building our Vue applications, we have been using the standard script tag include method for Vue. However, as we transition from jQuery/Knockout-heavy apps to more complex ones, the maintenance issues that may arise if we don't switch to the CLI build sooner rather than later are becoming apparent.
Although not a problem for many of our apps, due to our early adoption of an "internal CDN" approach in our Vue apps, bundling everything in Webpack seems like a step back in terms of versatility. Currently, we serve four files, with each route within our MVC app having its own associated Vue instance (e.g., about.js), controlling the UI and logic. The CDN serves: 1. polyfills.js (for browser compatibility), 2. vendor.js (axios, moment.js, and others), 3. vue.js (vue + vee-validate), and 4. components.js (our custom UI component library).
I'm particularly concerned about #4. Serving this over the CDN has allowed us to instantly push updates to all our apps without running a new build. With the intention of eventually converting all 80+ internal applications, plus existing and new external applications to Vue, updating shared components required by 30 apps means rebuilding and pushing them all, which is far from ideal.
Is there a way to continue using the CDN build solely for our components while bundling the rest as a SPA with Webpack?
Note: This differs from referencing an external JS library like jQuery; I am focusing on adding Vue Components. If you load a library externally and then try to import the component, Vue will throw a console error. Simply adding it won't work either because there's no import, but importing it also fails because it's external to the app.