// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import VueRouter from 'vue-router' import App from './App' import SignIn from './components/SignIn' const routes = [ { path: '/', component: SignIn }, { path: '/signin', component: SignIn } ] const router = new VueRouter({ routes // short for routes: routes }) Vue.use(VueRouter) /* eslint-disable no-new */ new Vue({ el: '#app', template: '', components: { App }, router: router })