[Vuejs]-Why can't load chunk?

0👍

You should configure your router like this

import Router from 'vue-router' 

Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [ 
    {
      path: '/my/specific/route',
      name: 'mySpecificroute',
      component: () => import(/* webpackChunkName: "SpecificRoute" */ './components/****/****')
    }, 
  ]
})

Leave a comment