import Vue from 'vue'
import Router from 'vue-router'

// read more about lazy loading router : https://router.vuejs.org/en/advanced/lazy-loading.html
const Home = () => import('pages/Home.vue')
const Profile = () => import('pages/Profile.vue')
const Repositories = () => import('pages/Repositories.vue')
const Following = () => import('pages/Following.vue')
const Followers = () => import('pages/Followers.vue')
const SearchResult = () => import('pages/SearchResult.vue')
const About = () => import('pages/About.vue')

Vue.use(Router)

var router = new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/:user/profile',
      name: 'Profile',
      component: Profile
    },
    {
      path: '/:user/repositories',
      name: 'Repositories',
      component: Repositories
    },
    {
      path: '/:user/following',
      name: 'Following',
      component: Following
    },
    {
      path: '/:user/followers',
      name: 'Followers',
      component: Followers
    },
    {
      path: '/search',
      name: 'SearchResult',
      component: SearchResult
    },
    {
      path: '/about',
      name: 'About',
      component: About
    }
  ]
})

export default router

@@ -166,24 +166,55 @@
 ) =%3E import(
+/* webpackChunkName: %22home%22 */ 
 'pages/Home.
@@ -244,24 +244,58 @@
 ) =%3E import(
+/* webpackChunkName: %22profile%22 */ 
 'pages/Profi
@@ -333,24 +333,55 @@
 ) =%3E import(
+/* webpackChunkName: %22repo%22 */ 
 'pages/Repos
@@ -417,32 +417,68 @@
  = () =%3E import(
+/* webpackChunkName: %22following%22 */ 
 'pages/Following
@@ -511,24 +511,60 @@
 ) =%3E import(
+/* webpackChunkName: %22followers%22 */ 
 'pages/Follo
@@ -604,24 +604,57 @@
 ) =%3E import(
+/* webpackChunkName: %22search%22 */ 
 'pages/Searc
@@ -694,16 +694,48 @@
  import(
+/* webpackChunkName: %22about%22 */ 
 'pages/A

add chunkName