28 lines
557 B
TypeScript
Executable File
28 lines
557 B
TypeScript
Executable File
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
import electron from 'vite-plugin-electron';
|
|
import renderer from 'vite-plugin-electron-renderer';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
electron([
|
|
{
|
|
entry: 'electron/main.ts',
|
|
},
|
|
{
|
|
entry: 'electron/preload.ts',
|
|
onstart(options: { reload: () => void }) {
|
|
options.reload();
|
|
},
|
|
},
|
|
]),
|
|
renderer(),
|
|
],
|
|
base: './',
|
|
server: {
|
|
port: 5173,
|
|
},
|
|
});
|