You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on a Nuxt project, I noticed the project's start up time increased significantly (from a few hundred ms to 9000ms+) after I imported a Sass library. I originally thought this was from the Sass compiler being slow in general but after replicating the same setup in a standalone Vite project I saw very little increase to its start up time, leading me to consider if the performance hit could be Nuxt specific.
Something else I noticed is that with DEBUG=*, the Nuxt project logged additional .scss entries and the entries also took more time compared to the Vite project (although this could be intended behavior?).
Additional context
I tried disabling CSS sourcemaps in the Nuxt project after finding vitejs/vite#8656 (comment) using sourcemap: false in nuxt.config.ts (#18446), but this didn't seem to help.
I was also able to reproduce the slowdown with other Sass libraries like bootstrap/scss/bootstrap.scss.
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
Nuxt Project: https://stackblitz.com/edit/github-4zwpte
Vite Project: https://stackblitz.com/edit/github-soapej
Describe the bug
While working on a Nuxt project, I noticed the project's start up time increased significantly (from a few hundred ms to 9000ms+) after I imported a Sass library. I originally thought this was from the Sass compiler being slow in general but after replicating the same setup in a standalone Vite project I saw very little increase to its start up time, leading me to consider if the performance hit could be Nuxt specific.
Something else I noticed is that with
DEBUG=*
, the Nuxt project logged additional.scss
entries and the entries also took more time compared to the Vite project (although this could be intended behavior?).Additional context
I tried disabling CSS sourcemaps in the Nuxt project after finding vitejs/vite#8656 (comment) using
sourcemap: false
innuxt.config.ts
(#18446), but this didn't seem to help.I was also able to reproduce the slowdown with other Sass libraries like
bootstrap/scss/bootstrap.scss
.Logs
No response
The text was updated successfully, but these errors were encountered: