import '@babel/polyfill' import Vue from 'vue' import VueRouter from 'vue-router' import svgSpriteLoader from 'helpers/svg-sprite-loader' import App from 'Components/App' import RouteMenuBar from 'Components/Routes/MenuBar' import RouteMenuBubble from 'Components/Routes/MenuBubble' import RouteLinks from 'Components/Routes/Links' import RouteHidingMenuBar from 'Components/Routes/HidingMenuBar' import RouteTodoList from 'Components/Routes/TodoList' import RouteMarkdownShortcuts from 'Components/Routes/MarkdownShortcuts' const __svg__ = { path: './assets/images/icons/*.svg', name: 'assets/images/[hash].sprite.svg' } svgSpriteLoader(__svg__.filename) Vue.config.productionTip = false Vue.use(VueRouter) const routes = [ { path: '/', component: RouteMenuBar, }, { path: '/menu-bubble', component: RouteMenuBubble, }, { path: '/links', component: RouteLinks, }, { path: '/hiding-menu-bar', component: RouteHidingMenuBar, }, { path: '/todo-list', component: RouteTodoList, }, { path: '/markdown-shortcuts', component: RouteMarkdownShortcuts, }, ] const router = new VueRouter({ routes, linkActiveClass: 'is-active', linkExactActiveClass: 'is-exact-active', }) new Vue({ router, render: h => h(App), }).$mount('#app')