Skip to content

Commit

Permalink
fix: 名前を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
sabonerune committed Oct 28, 2024
1 parent e5fcdb9 commit d80b4d6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
10 changes: 6 additions & 4 deletions .vscode/launch.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -40,7 +41,8 @@
".",
"--no-sandbox"
],
"preLaunchTask": "Electron Serve Only",
// 事前にElectronを起動せずにバックグラウンドで"electron:serve"を実行する
"preLaunchTask": "Electron Serve without Launch Electron",
"skipFiles": [
"<node_internals>/**"
]
Expand All @@ -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
}
Expand Down
5 changes: 3 additions & 2 deletions .vscode/tasks.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d80b4d6

Please sign in to comment.