mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
vite.config.electron.ts
This commit is contained in:
parent
16f915075d
commit
c4094b59bb
27
vite.config.electron.ts
Normal file
27
vite.config.electron.ts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { join } from 'path'
|
||||||
|
import { defineConfig } from 'vite-plugin-electron'
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
main: {
|
||||||
|
entry: 'electron/main/index.ts',
|
||||||
|
vite: {
|
||||||
|
build: {
|
||||||
|
sourcemap: false,
|
||||||
|
outDir: 'dist/electron/main',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
preload: {
|
||||||
|
input: {
|
||||||
|
// You can configure multiple preload here
|
||||||
|
splash: join(__dirname, 'electron/preload/splash.ts'),
|
||||||
|
},
|
||||||
|
vite: {
|
||||||
|
build: {
|
||||||
|
// For debug
|
||||||
|
sourcemap: 'inline',
|
||||||
|
outDir: 'dist/electron/preload',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
Loading…
x
Reference in New Issue
Block a user