basin / files / vite.config.ts
vite.config.ts
9e605e0f 2026-06-30 Pavel Safronov | 1 | import { defineConfig } from 'vite'; |
f8e9c765 2026-10-27 Pavel Safronov | 2 | import fuzzyworld from 'fuzzyworld-tools/vite'; |
9e605e0f 2026-06-30 Pavel Safronov | 3 | |
f8e9c765 2026-10-27 Pavel Safronov | 4 | // 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 Safronov | 6 | export default defineConfig({ |
f8e9c765 2026-10-27 Pavel Safronov | 7 | 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 Safronov | 10 | publicDir: false, |
| 11 | build: { | |
| 12 | outDir: 'public', | |
| 13 | emptyOutDir: true, | |
| 14 | }, | |
| 15 | }); |