mirror of
https://github.com/tiennm99/loldle.git
synced 2026-09-10 04:20:02 +00:00
Add svelte.config.js (adapter-static, BASE_PATH-driven base), vite.config.js (Tailwind v4 Vite plugin ahead of sveltekit), the src/ shell, and static/ holding a copy of champions.json plus .nojekyll. Declares "type": "module" so Vite can load the .js config files; Next.js was only unaffected because all its configs use .mjs. jsconfig keeps the @/* alias so pnpm next:build stays runnable for side-by-side comparison during the port. Next.js scripts move to next:* and both toolchains build from this commit.
9 lines
288 B
JavaScript
9 lines
288 B
JavaScript
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()],
|
|
});
|