I am trying to load several Vue.js components into an app.js file (using the / vueify browser via elixir) in a laravel project.
Instead of loading each component at once, I would like to be lazy to load individual vue components when they are needed, using vue router .
Where can I configure the partition bundle json file and how should it be structured?
Ive currently linked the following main app.js file:
import Vue from 'vue'; import Resource from 'vue-resource'; import VueRouter from 'vue-router';
Here where I am stuck:
- How are we lazy to load all the .vue components listed above into the
router.map function? - How to configure the
partition table json file for the above and where should I save it?
Noddy
source share