const path = (components) => import(`./${components}.vue`)
export default new Router({
routes: [
{
path: '/',
name: 'homepage',
component: path(Home)
},
]
})
export default new Router({
routes: [
{
path: '/',
name: 'homepage',
component: () => import('./Home.vue').then(m => m.default),
},
]
});