src/router/import-production.js New file @@ -0,0 +1 @@ module.exports = file => () => import('@/views/' + file + '.vue')