Replies: 1 comment 2 replies
-
vuetifyjs.com uses vite and is ready in under 6 seconds even though we import sass instead which should be slower. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have recently switched from vue-cli-service to vite. I'm using vite-plugin-vuetify. With vue-cli-service and webpack, the dev server used to take a minute to start as webpack did its thing, but then the page was ready at that point. But with vite, the dev server starts very quickly and then the initial page load takes a while. When I say initial I mean the first page load each time I start the dev server, even if it's already optimized the dependencies and no files have changed so things ought to be cached.
I am not convinced this slow initial load is supposed to be the case. Searching online does not get many recent results for "vite dev server slow initial page load", other than some suggestions to use
optimizeDeps.include
invite.config.js
which does not make any difference if I add vuetify.Looking at the network panel of devtools the main bottleneck seems to be serving individual component CSS files
Part of the output of
vite -d
:(And btw I don't know why it would load the styles for
VTimeline
as I'm not using that in my app.)Click to show vite.config.js
Click to show src/plugins/vuetify.js
Beta Was this translation helpful? Give feedback.
All reactions