refactor: directory structure

This commit is contained in:
草鞋没号 2022-06-16 19:23:43 +08:00
parent 711599f332
commit 59a53b3ab8
3 changed files with 4 additions and 2 deletions

View File

@ -13,22 +13,24 @@ export default defineConfig({
vue(),
electron({
main: {
entry: 'electron-main/index.ts',
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'),
splash: join(__dirname, 'electron/preload/splash.ts'),
},
vite: {
build: {
// For debug
sourcemap: 'inline',
outDir: 'dist/electron/preload',
}
}
},