Skip to content

Commit 7b935f6

Browse files
authored
chore: Added vscode debugger and launcher configuration. (#50)
chore: updated launch.json
1 parent dceafe9 commit 7b935f6

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

.vscode/launch.json

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"command": "./node_modules/.bin/astro dev",
6-
"name": "Development server",
7-
"request": "launch",
8-
"type": "node-terminal"
9-
},
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Launch Astro dev server",
7+
"request": "launch",
8+
"type": "node-terminal",
9+
"skipFiles": ["**/node_modules/**"]
10+
},
11+
{
12+
"type": "chrome",
13+
"request": "launch",
14+
"name": "Launch Chrome for site",
15+
"url": "http://localhost:4321",
16+
"webRoot": "${workspaceFolder}/src",
17+
"sourceMapPathOverrides": {
18+
"vite:///src/*": "${webRoot}/*"
19+
},
20+
"skipFiles": ["**/node_modules/**"]
21+
},
1022
{
1123
"type": "node",
1224
"request": "launch",
@@ -29,5 +41,14 @@
2941
},
3042
"stopOnEntry": true
3143
}
32-
]
33-
}
44+
],
45+
"compounds": [
46+
{
47+
"name": "Launch Astro dev server and Chrome",
48+
"configurations": [
49+
"Launch Astro dev server",
50+
"Launch Chrome for site"
51+
]
52+
}
53+
]
54+
}

0 commit comments

Comments
 (0)