Files
mao1/Elec/vite.config.ts
fyah 8bd977987a fix: restructure Elec to match electron-vite expected layout
- Move index.html to src/renderer/ (electron-vite hard requirement)
- Flatten React source to src/ (main.tsx, App.tsx, components/)
- Remove debug red background
- Use @tailwindcss/postcss plugin

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 11:31:38 +08:00

19 lines
353 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import electron from 'electron-vite/plugin'
export default defineConfig({
plugins: [
react(),
electron([
{
main: {
entry: 'src/main/index.ts',
},
preload: {
input: 'src/preload/index.ts',
},
]),
],
})