24 lines
668 B
JavaScript
24 lines
668 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import electron from 'vite-plugin-electron/simple'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
electron({
|
|
main: {
|
|
// Main process entry point — compiled to dist-electron/main.js
|
|
entry: 'electron/main.js',
|
|
},
|
|
preload: {
|
|
// Preload script entry point — compiled to dist-electron/preload.js
|
|
input: 'electron/preload.js',
|
|
},
|
|
// Activates vite-plugin-electron-renderer:
|
|
// polyfills Node built-ins (path, fs, etc.) that are used in renderer
|
|
renderer: {},
|
|
}),
|
|
],
|
|
})
|