From d80b4d6e4dc57e5b16ac95983f4e6bb4e34545f9 Mon Sep 17 00:00:00 2001 From: sabonerune <102559104+sabonerune@users.noreply.github.com> Date: Mon, 28 Oct 2024 21:28:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8D=E5=89=8D=E3=82=92=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.template.json | 10 ++++++---- .vscode/tasks.template.json | 5 +++-- vite.config.mts | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.vscode/launch.template.json b/.vscode/launch.template.json index b863c0728e..4e0ed85bf7 100644 --- a/.vscode/launch.template.json +++ b/.vscode/launch.template.json @@ -31,7 +31,8 @@ "type": "node" }, { - "name": "Launch Electron without electron:serve", + "name": "Launch Electron Main Process without hot reload", + // Electronのみを起動 "request": "launch", "type": "node", "runtimeExecutable": "npx", @@ -40,7 +41,8 @@ ".", "--no-sandbox" ], - "preLaunchTask": "Electron Serve Only", + // 事前にElectronを起動せずにバックグラウンドで"electron:serve"を実行する + "preLaunchTask": "Electron Serve without Launch Electron", "skipFiles": [ "/**" ] @@ -66,10 +68,10 @@ "stopAll": true }, { - "name": "Launch Electron Main/Renderer without electron:serve", + "name": "Launch Electron Main/Renderer without hot reload", "configurations": [ "Attach to Renderer Process", - "Launch Electron without electron:serve" + "Launch Electron Main Process without hot reload" ], "stopAll": true } diff --git a/.vscode/tasks.template.json b/.vscode/tasks.template.json index 1d6bcafff3..0bc1568c4f 100644 --- a/.vscode/tasks.template.json +++ b/.vscode/tasks.template.json @@ -4,12 +4,13 @@ "version": "2.0.0", "tasks": [ { - "label": "Electron Serve Only", + "label": "Electron Serve without Launch Electron", + // Electronを起動せずにバックグラウンドで"electron:serve"を実行する "type": "npm", "script": "electron:serve", "options": { "env": { - "SKIP_LAUNCH_EDITOR": "1" + "SKIP_LAUNCH_ELECTRON": "1" } }, "isBackground": true, diff --git a/vite.config.mts b/vite.config.mts index 6327f0a5cb..63408d5cb6 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -46,7 +46,7 @@ export default defineConfig((options) => { ? "inline" : false; const launchEditor = - process.env.SKIP_LAUNCH_EDITOR !== "1" && options.mode !== "test"; + process.env.SKIP_LAUNCH_ELECTRON !== "1" && options.mode !== "test"; return { root: path.resolve(__dirname, "src"), envDir: __dirname,