Inline all assets into index.html, compress it, saves 300kB

This commit is contained in:
Markus Unterwaditzer
2025-07-03 21:53:56 +02:00
committed by Will Greenberg
parent 5e328b889b
commit 300215206c
7 changed files with 47 additions and 42 deletions

View File

@@ -11,6 +11,12 @@ export default {
precompress: false,
strict: true,
}),
output: {
// Force everything into one HTML file. SvelteKit will still generate
// a lot of JS files but they are deadweight and will not be included
// in the rust binary.
bundleStrategy: 'inline',
},
version: {
// Use a deterministic version string for reproducible builds.
// Without this option, SvelteKit will use a timestamp.