fuzzyworld

basin / files / vite.config.ts

vite.config.ts

Blame: the commit that last changed each line · file · history

9e605e0f 2026-06-30 Pavel Safronov1import { defineConfig } from 'vite';
f8e9c765 2026-10-27 Pavel Safronov2import fuzzyworld from 'fuzzyworld-tools/vite';
9e605e0f 2026-06-30 Pavel Safronov3
f8e9c765 2026-10-27 Pavel Safronov4// Served at https://apps.fuzzyworld.net/basin/: fuzzyworld() sets base to /basin/.
5// The build goes to `public/` (kept from GitLab Pages days; `fw deploy` finds it).
9e605e0f 2026-06-30 Pavel Safronov6export default defineConfig({
f8e9c765 2026-10-27 Pavel Safronov7 plugins: [fuzzyworld()],
8 // We build *into* `public/`, so disable Vite's default `public/` static-assets
9 // folder to avoid the name collision.
9e605e0f 2026-06-30 Pavel Safronov10 publicDir: false,
11 build: {
12 outDir: 'public',
13 emptyOutDir: true,
14 },
15});