first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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: {},
|
||||
}),
|
||||
],
|
||||
})
|
||||
Reference in New Issue
Block a user