From 59a53b3ab8daa7573d3f1aeea1ea070486d7c7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Thu, 16 Jun 2022 19:23:43 +0800 Subject: [PATCH] refactor: directory structure --- {electron-main => electron/main}/index.ts | 0 {electron-preload => electron/preload}/splash.ts | 0 vite.config.ts | 6 ++++-- 3 files changed, 4 insertions(+), 2 deletions(-) rename {electron-main => electron/main}/index.ts (100%) rename {electron-preload => electron/preload}/splash.ts (100%) diff --git a/electron-main/index.ts b/electron/main/index.ts similarity index 100% rename from electron-main/index.ts rename to electron/main/index.ts diff --git a/electron-preload/splash.ts b/electron/preload/splash.ts similarity index 100% rename from electron-preload/splash.ts rename to electron/preload/splash.ts diff --git a/vite.config.ts b/vite.config.ts index 5b028af..e820a4c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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', } } },