mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
refactor: directory structure
This commit is contained in:
parent
711599f332
commit
59a53b3ab8
@ -13,22 +13,24 @@ export default defineConfig({
|
|||||||
vue(),
|
vue(),
|
||||||
electron({
|
electron({
|
||||||
main: {
|
main: {
|
||||||
entry: 'electron-main/index.ts',
|
entry: 'electron/main/index.ts',
|
||||||
vite: {
|
vite: {
|
||||||
build: {
|
build: {
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
|
outDir: 'dist/electron/main',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
preload: {
|
preload: {
|
||||||
input: {
|
input: {
|
||||||
// You can configure multiple preload here
|
// You can configure multiple preload here
|
||||||
splash: join(__dirname, 'electron-preload/splash.ts'),
|
splash: join(__dirname, 'electron/preload/splash.ts'),
|
||||||
},
|
},
|
||||||
vite: {
|
vite: {
|
||||||
build: {
|
build: {
|
||||||
// For debug
|
// For debug
|
||||||
sourcemap: 'inline',
|
sourcemap: 'inline',
|
||||||
|
outDir: 'dist/electron/preload',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user