Skip to content

Instantly share code, notes, and snippets.

@gearmobile
Created September 14, 2017 09:56
Show Gist options
  • Save gearmobile/a2b38042eb4af5027c928bbcf41b8f6b to your computer and use it in GitHub Desktop.
Save gearmobile/a2b38042eb4af5027c928bbcf41b8f6b to your computer and use it in GitHub Desktop.
const Home = () => import(/* webpackChunkName: "home" */ './Home.vue');
const About = () => import(/* webpackChunkName: "about" */ './About.vue');
const Contact = () => import(/* webpackChunkName: "contact" */ './Contact.vue');
const routes = [
{ path: '/', name: 'home', component: Home },
{ path: '/about', name: 'about', component: About },
{ path: '/contact', name: 'contact', component: Contact }
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment