Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Lazy-loading isn't working #47

Open
a-dung-97 opened this issue Jul 4, 2019 · 1 comment
Open

Lazy-loading isn't working #47

a-dung-97 opened this issue Jul 4, 2019 · 1 comment

Comments

@a-dung-97
Copy link

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
Copy link
Owner

adenvt commented Jul 5, 2019

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')
  }
]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants