Init Electrin-Vite

This commit is contained in:
Ali Zemani 2024-07-25 19:50:15 +03:30
parent a4483fcb48
commit 73dc8bd1d6
No known key found for this signature in database
GPG key ID: C4B2B4E8E201F714
32 changed files with 238 additions and 0 deletions

18
electron.vite.config.ts Normal file
View file

@ -0,0 +1,18 @@
import { resolve } from 'path'
import { defineConfig, externalizeDepsPlugin, bytecodePlugin } from 'electron-vite'
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin(), bytecodePlugin()]
},
preload: {
plugins: [externalizeDepsPlugin(), bytecodePlugin()]
},
renderer: {
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
}
},
}
})