building-use-map/vite.config.ts
HangerThem 5a3ee9ab86 refactor: render the UI with Preact and signals
- Sidebar, legend, status, info panel and tooltip are Preact components (src/components)
- App state that the UI or map depends on is held in @preact/signals; the map redraws
  through a signal effect, pan/zoom still redraw directly
- Classification is a computed signal (buildings) instead of manual classifyAll calls
- index.html is just a mount point; CSS is imported from main.tsx

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 11:41:17 +01:00

13 lines
283 B
TypeScript

import preact from '@preact/preset-vite'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [preact()],
root: 'src',
// relative asset URLs so dist/ works from any sub-path
base: './',
build: {
outDir: '../dist',
emptyOutDir: true,
},
})