Extreme optimize + bug fixes + prerendering fix + more deprecation
Some checks failed
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Failing after 1s

This commit is contained in:
BOTAlex 2025-10-02 07:36:41 +02:00
parent 28eea2d035
commit 4e2fe3700d
53 changed files with 324 additions and 1775 deletions

View file

@ -1,27 +1,27 @@
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import adapter from '@sveltejs/adapter-static';
import vitePreprocess from "./src/optimizers/viteThing.js";
import adapter from "@sveltejs/adapter-static";
/** @type {import('@sveltejs/kit').Config} */
export default {
preprocess: vitePreprocess(),
onwarn: (warning, handler) => {
if (warning.code.startsWith('a11y-')) return
if (warning.code === 'missing-exports-condition') return
if (warning.code === 'a11y-no-static-element-interactions') return
if (warning.code === 'svelte-ignore a11y-autofocus') return
if (warning.code.startsWith('css-unused-selector')) return
handler(warning)
},
kit: {
prerender: {
handleHttpError: 'fail'
},
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: false,
strict: true
})
}
preprocess: vitePreprocess(),
onwarn: (warning, handler) => {
if (warning.code.startsWith("a11y-")) return;
if (warning.code === "missing-exports-condition") return;
if (warning.code === "a11y-no-static-element-interactions") return;
if (warning.code === "svelte-ignore a11y-autofocus") return;
if (warning.code.startsWith("css-unused-selector")) return;
handler(warning);
},
kit: {
prerender: {
handleHttpError: "fail",
},
adapter: adapter({
pages: "build",
assets: "build",
fallback: undefined,
precompress: false,
strict: true,
}),
},
};