Files
loldle/web/vite.config.js
tiennm99 3584d897c1 build(deps): upgrade web to SvelteKit 3 and vitest 5
Move the SvelteKit config into vite.config.js, replace the $lib alias with
#lib subpath imports (dropping the vitest alias), extend $app/tsconfig, and
pass asset() paths without a leading slash. Drop the @babel/core and js-yaml
overrides, which no longer match anything in the tree.
2026-10-03 13:12:03 +07:00

18 lines
591 B
JavaScript

import adapter from "@sveltejs/adapter-static";
import { sveltekit } from "@sveltejs/kit/vite";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
export default defineConfig({
// tailwindcss() must precede sveltekit(), per the Tailwind v4 SvelteKit guide.
plugins: [
tailwindcss(),
sveltekit({
// No options: output goes to build/. No fallback either — every route is
// prerendered, so a fallback page would mask a real prerender failure.
adapter: adapter(),
paths: { base: process.env.BASE_PATH || "" }
})
]
});