fuzzyworld

word-waltz / files / vite.config.ts

vite.config.ts

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

f755bca6 2026-03-23 Pavel Safronov1import { defineConfig } from 'vite';
5a9bfdda 2026-10-27 Pavel Safronov2import fuzzyworld from 'fuzzyworld-tools/vite';
f755bca6 2026-03-23 Pavel Safronov3
4export default defineConfig({
5a9bfdda 2026-10-27 Pavel Safronov5 // fuzzyworld() sets base to /word-waltz/ for builds; the dev server keeps '/'.
6 plugins: [fuzzyworld()],
f755bca6 2026-03-23 Pavel Safronov7 // src/index.html is the entry point; Vite resolves assets relative to it
8 root: 'src',
9 build: {
10 outDir: '../dist',
11 emptyOutDir: true,
12 },
13});