Replies: 2 comments 3 replies
-
Since Remix doesn’t support SASS out of the box it means you added another plugin to Vite, right? Then I recommend you to open an issue on the repo of that plugin. |
Beta Was this translation helpful? Give feedback.
-
x Build failed in 608ms |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
One of our apps uses Bootstrap and we customize some of their Sass variables. When importing our .scss file with the customizations (which then also loads Bootstrap's styles), both the initial load and subsequent hydration are super slow (like 7s to load, 3s to hydrate). If we skip the customization by importing Bootstrap's CSS directly, it speeds the whole thing up roughly 10x. Is anyone aware of anything that can be done to improve the speed here? Is it something Remix can address at the plugin level?
I've included a CPU profile captured via
vite --profile
that you can view at https://www.speedscope.app. I'm no flame chart expert, but it looks likesass.dart.js
certainly contributes to the slowness, which matches the results of our troubleshooting.vite-profile-real-app.cpuprofile
Beta Was this translation helpful? Give feedback.
All reactions