adenvt / laravel-coreui-vue

Boilerplate for Single Page Application, powered by Laravel, CoreUI, Vue
https://packagist.org/packages/adenvt/laravel-coreui-vue
MIT License
79 stars 26 forks source link

Lazy-loading isn't working #47

Open a-dung-97 opened 5 years ago

a-dung-97 commented 5 years ago

Hello I'm a newbie. I used lazy-loading in vue router but an error occurred. The app.scss wasn't complied image Please help me because I'm new to javascript.Thanks alot!

adenvt commented 5 years ago

I'm not recommended using lazy load if you new to js, because this project not tested before with lazy-loading component. I afraid you need do some setup to this project before you can go.

but if want, i can give you some example:

export default [
  {
    path     : 'sompath',
    name     : 'Route Name',
    component: () => import('./path/to/Component.vue')
  }
]