Dynamic URL to load components by URL

Hi,

using F7 + vue.js + webpack V2 :
For now I’m bulding my routes like this :

in routes.js

import mypage from './pages/mypage.vue'; 
export default [
   {
      path: '/mypage/',
      component: mypage
   },
]

I’m pretty sure we can automate this by a common way, but I don’t found any doc or exemple on that, sorry if there is some at an obvious place.

I’m thinking about something like this :

export default [
   {
      path: '/page/:path',
      componentUrl: './pages/{{path}}.vue'
   },
]

Check this https://github.com/framework7io/framework7-vue/issues/362