import { resolve } from 'path' import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' /** * Standalone Vite server for fast UI iteration in a browser — no Electron window. * Run with `npm run ui`. Since there's no preload here, `window.api` is stubbed in * dev (see src/renderer/src/main.tsx) so the UI stays interactive for design work. * * The full app still runs via `npm run dev` (electron-vite); this is purely for UI. */ export default defineConfig({ root: resolve('src/renderer'), base: './', resolve: { alias: { '@renderer': resolve('src/renderer/src'), '@shared': resolve('src/shared') } }, plugins: [react()], server: { port: 5174, open: false } })