paro-paro / vite-plugin-vuetify-sass

MIT License
8 stars 1 forks source link

Speed issue #1

Open ttonyh opened 11 months ago

ttonyh commented 11 months ago

Great idea to extract the functionality into a separate module. The speed though is painful. Do you know what's causing it and if it's possible to speed it up?

paro-paro commented 11 months ago

Hi @ttonyh

Have you tried latests nuxt 3.8.1 and 3.8.2 versions? I believe the nuxt warm up time has being reduced on those versions: here

Running the basic playground/nuxt app from the repo I get > 8 seconds on nuxt 3.7.4 and 3.8.0 (which is definitely very bad since the app is just a single button...)

Screenshot 2023-12-06 at 14 37 53 Screenshot 2023-12-06 at 14 47 15

But now, on 3.8.1 and 3.8.2, the warm up time is down to around 2.7 secs (which might not be the best but is an improvement).

Screenshot 2023-12-06 at 14 52 32 Screenshot 2023-12-06 at 14 57 20

Of course, this plugin is just a copy/pasted version of the original that adds support for nuxt-ssr but does not includes any performance related improvements. And I have not stress-tested the plugin either in a real production grade app (with many components).

So, as far as I know, there are a few upstream issues that might be affecting:

ttonyh commented 11 months ago

Hi @paro-paro ,

Thanks for the quick response and all the info/links. I'm on the following version: Nuxt 3.8.2 with Nitro 2.8.1. It has been a quite a journey trying to get the Vuetify SCSS / Loader / Vite thing working well in DEV, but I have confidence we're nearing the finish line. Thanks again for this very helpful module!

BayBreezy commented 11 months ago

Thanks for the plugin