- Copy vim-snake structure stripped of game-specific logic - Remove finalScore calculation (raw data only) - Setup example app with keybinding state management - Empty board renders and waits for game logic
23 lines
544 B
TypeScript
Executable File
23 lines
544 B
TypeScript
Executable File
import { defineConfig } from "vite";
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import react from "@vitejs/plugin-react";
|
|
import { fileURLToPath } from "node:url";
|
|
import { dirname, resolve } from "node:path";
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
const libSource = resolve(__dirname, "../src");
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@vimazing/vim-snake": libSource, // use source during dev
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
open: true,
|
|
},
|
|
});
|
|
|