- 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>
13 lines
283 B
TypeScript
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,
|
|
},
|
|
})
|