framework7io / framework7-template-vue-webpack

Deprecated! Framework7 Vue Webpack starter app template with hot-reload & css extraction
https://framework7.io/vue/
MIT License
384 stars 136 forks source link

Lazy loading pages #50

Closed etiennea closed 6 years ago

etiennea commented 6 years ago

In router, some pages that are loaded later in the app, I try to load like this for webpack optimization. const HomePage = resolve => require(['./HomePage.vue'], resolve); Instead of const HomePage from './HomePage.vue'; These pages work but just not the first time they are accessed. Any idea how I could fix this? Probably useful for not just me!

nolimits4web commented 6 years ago

http://framework7.io/vue/navigation-router.html#async-lazy-components