Update to sveltekit 1.0

This commit is contained in:
2022-12-27 14:10:48 +00:00
parent 03914855da
commit 4df0eb499e
11 changed files with 1354 additions and 248 deletions

View File

@ -1,15 +1,21 @@
import adapter from "@sveltejs/adapter-static";
import preprocess from 'svelte-preprocess';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: preprocess(),
// preprocess: preprocess(),
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
prerender: {
default: true
},
adapter: adapter({
pages: 'build'
pages: 'build',
assets: 'build',
fallback: null,
precompress: false,
strict: true
})
}
};