- Move the single-file app into src/ as typed ES modules - Vite for dev server and minified production build (bun run dev / build) - oxfmt/oxlint config; rename useName -> ruianUseName (hooks lint false positive) - Fix horizontal overflow in the sidebar (range input default margin) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
219 B
TypeScript
11 lines
219 B
TypeScript
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
root: 'src',
|
|
// relative asset URLs so dist/ works from any sub-path
|
|
base: './',
|
|
build: {
|
|
outDir: '../dist',
|
|
emptyOutDir: true,
|
|
},
|
|
})
|