Skip to content

Commit

Permalink
inject css in head to prevent content shift when using SSR, fixes #1760
Browse files Browse the repository at this point in the history
  • Loading branch information
buhrmi authored Sep 25, 2024
1 parent 700f369 commit 30531a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion playgrounds/svelte5/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export default defineConfig({
ssr: 'resources/js/ssr.js',
refresh: true,
}),
svelte(),
svelte({
compilerOptions: {
css: 'injected'
}
}),
],
})

0 comments on commit 30531a6

Please sign in to comment.