Level 63
What have you already tried ?
What is your current Vite configuration ?
How are you importing the styles inde the <head> tags ?
Summer Sale! All accounts are 50% off this week.
Hi everyone,
I’m using Laravel 10, Vue 3, Inertia.js v1, and SSR with Vite. My styles are written in SCSS and compiled via Vite.
When SSR is enabled, the initial HTML renders instantly, but there’s a noticeable flash of unstyled content (FOUC) before the SCSS-generated CSS is applied.
Here’s what I’ve noticed:
How can I ensure that when using SSR with SCSS, the compiled CSS is included and applied with the initial HTML response so the page is styled immediately?
Thanks in advance
Please or to participate in this conversation.