feat: initial sveltekit

This commit is contained in:
2026-08-22 09:16:10 +05:00
parent d71f8648f5
commit 85f595f14b
20 changed files with 1370 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import adapter from '@sveltejs/adapter-static';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
sveltekit({
compilerOptions: {
// Force runes mode for the project, except for libraries. Can be removed in svelte 6.
runes: ({ filename }) =>
filename.split(/[/\\]/).includes('node_modules') ? undefined : true
},
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: false,
strict: true
}),
prerender: {
handleMissingId: 'warn'
}
})
]
});