mirror of
https://github.com/tiennm99/loldle.git
synced 2026-10-11 03:13:42 +00:00
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.
18 lines
591 B
JavaScript
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 || "" }
|
|
})
|
|
]
|
|
});
|