- Create app.html as SPA shell with navigation header and dark theme - Add hash-based router (router.ts) for client-side navigation - Implement page components: - Home page with hero section and feature overview - Leaderboard with ranking table and status indicators - Match history with match cards and participant info - Bot directory with bot cards sorted by rating - Bot profile with stats, rating sparkline chart, and recent matches - Registration form with API key display - Replay viewer (integrated from Phase 3) - Docs/Getting Started page with protocol overview - Add API client (api-types.ts) for fetching data from Worker API - Update vite.config.ts for multi-page build (index.html + app.html) - Update PROGRESS.md with Phase 5 status and exit criteria Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
349 B
TypeScript
19 lines
349 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
root: '.',
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, 'index.html'),
|
|
app: resolve(__dirname, 'app.html'),
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
})
|