nuxt / components

Scan and auto import components for Nuxt.js 2.13+
MIT License
887 stars 48 forks source link

Not difference beetwen use Lazy prefix and dont use it #210

Closed njtnestor closed 3 years ago

njtnestor commented 3 years ago

I dont feel the diference beetwen use Lazy prefix in component name and dont use it.

In this codepen when I delete the Lazy prefix and inspect the network I feel the same result: A mountains-list.js is generated in both cases

Can someone explain me, what is the difference?

atinux commented 3 years ago

You can see the difference when building the app and running nuxt start

njtnestor commented 3 years ago

You can see the difference when building the app and running nuxt start

Oh nice! I can see it now.

I would like to know why the difference cant be appreciated in dev mode.

atinux commented 3 years ago

It will actually slow the build down since it uses a Webpack loader to smartly import the components in dev.

njtnestor commented 3 years ago

ok thanks for the clarification