- 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>
19 lines
353 B
TypeScript
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',
|
|
},
|
|
]),
|
|
],
|
|
})
|