Optimised build

This commit is contained in:
2025-01-10 23:49:59 +00:00
parent 09e2fe3c3b
commit eaed024a10
5 changed files with 57 additions and 45 deletions

View File

@@ -1,11 +1,29 @@
import preprocess from "svelte-preprocess";
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-node';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: preprocess({}),
preprocess: preprocess({
postcss: true,
}),
kit: {
adapter: adapter()
adapter: adapter({
out: 'build',
precompress: true, // Pre-compresses files
polyfill: true
}),
prerender: {
handleMissingId: 'warn'
},
csp: {
mode: 'auto',
directives: {
'script-src': ['self']
}
},
version: {
name: Date.now().toString()
}
}
};