mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
27 lines
695 B
TypeScript
27 lines
695 B
TypeScript
|
import { defineConfig } from 'vite'
|
||
|
import electron from 'vite-plugin-electron'
|
||
|
import renderer from 'vite-plugin-electron-renderer'
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
vue(),
|
||
|
electron([
|
||
|
{
|
||
|
// Main-Process entry file of the Electron App.
|
||
|
entry: 'electron/main.ts',
|
||
|
},
|
||
|
{
|
||
|
entry: 'electron/preload.ts',
|
||
|
onstart(options) {
|
||
|
// Notify the Renderer-Process to reload the page when the Preload-Scripts build is complete,
|
||
|
// instead of restarting the entire Electron App.
|
||
|
options.reload()
|
||
|
},
|
||
|
},
|
||
|
]),
|
||
|
renderer(),
|
||
|
],
|
||
|
})
|