vite-vuetify-ts-starter icon indicating copy to clipboard operation
vite-vuetify-ts-starter copied to clipboard

Running on Windows and node 18.12.1 is very slow

Open alstelmach opened this issue 1 year ago • 6 comments

Hello 👋 I've been trying to run it on Windows, with node.js 18.12.1, but it's so slow, could we somehow speed it up or find the reason for this?

image

I've found out that some people were already struggling with similar problems: https://stackoverflow.com/questions/73204586/speed-up-vitejs-dev-mode-vue-3

I am not very into frontend programming, but I think those problems could be related to vite.config.js. Could we look into this?? 😄 Thanks in advance

alstelmach avatar Apr 21 '23 14:04 alstelmach

Have the same problem..

AvinoamSebbah avatar Apr 23 '23 09:04 AvinoamSebbah

This issue is due to the implementation of treeshaeking even in dev mode. https://vuetifyjs.com/en/features/treeshaking/

I'm thinking of a workaround now.

logue avatar Apr 24 '23 02:04 logue

I figured out the cause. It was a Sass customization process.

https://vuetifyjs.com/en/features/sass-variables/

In order to use pictograms in this template, the default Roboto font is loaded with Noto Color Emoji, and the monospaced font is Roboto Mono font.

There is nothing that can be done on the template side because of the specification of the sass loading process on the Vuetify side.

By commenting out styles: { configFile: 'src/styles/settings.scss' } in vite.config.ts, it is possible to deal with it for the time being.

logue avatar Apr 25 '23 02:04 logue

On mac it's also very slow... Even after commenting out styles: { configFile: 'src/styles/settings.scss' } in vite.config.ts, the First contentful paint is still very slow image

ramseyfeng avatar Aug 30 '23 06:08 ramseyfeng

On mac it's also very slow... Even after commenting out styles: { configFile: 'src/styles/settings.scss' } in vite.config.ts, the First contentful paint is still very slow image

For ths issue on my PC, commenting out the webfont loader and everything works fine.

ramseyfeng avatar Aug 30 '23 07:08 ramseyfeng

This template allows you to override all Vuetify settings in advance, so that may be the reason. As with the CSS issue earlier, please try playing around with the settings in src/plugin/vuetify.ts.(e.g. leave the contents of createVuetify blank)

logue avatar Sep 06 '23 01:09 logue