mirror of
https://github.com/Xevion/Pac-Man.git
synced 2026-01-31 02:25:04 -06:00
- Implement navigation state tracking with optimistic UI updates - Add loading spinner and error handling for WASM initialization - Insert browser yield points during game initialization to prevent freezing - Redesign leaderboard with tabbed navigation and mock data structure - Add utility CSS classes for consistent page layouts
29 lines
725 B
TypeScript
29 lines
725 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import vike from "vike/plugin";
|
|
import { defineConfig } from "vite";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
plugins: [vike(), react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "."),
|
|
},
|
|
dedupe: ["react", "react-dom"],
|
|
},
|
|
build: {
|
|
target: "es2022",
|
|
},
|
|
server: {
|
|
// Proxy API requests to the backend server during local development
|
|
// In production, both frontend and API are served from the same origin
|
|
proxy: {
|
|
"/api": {
|
|
target: process.env.VITE_API_TARGET || "http://localhost:3001",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|