Merge pull request #2 from beatz174-bit/codex/add-vscode-configuration-for-servers
Add VSCode launch configs for dev and preview servers
This commit is contained in:
Vendored
+21
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Launch Vite Dev Server",
|
||||||
|
"type": "pwa-chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"url": "http://localhost:5173/",
|
||||||
|
"webRoot": "${workspaceFolder}/src",
|
||||||
|
"preLaunchTask": "npm: dev server"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Launch Preview (Test) Server",
|
||||||
|
"type": "pwa-chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"url": "http://localhost:4173/",
|
||||||
|
"webRoot": "${workspaceFolder}/src",
|
||||||
|
"preLaunchTask": "npm: preview server"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+57
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "npm: dev server",
|
||||||
|
"type": "npm",
|
||||||
|
"script": "dev",
|
||||||
|
"path": ".",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
},
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "vite-dev",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "^.*$",
|
||||||
|
"file": 0,
|
||||||
|
"location": 0,
|
||||||
|
"message": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": ">.* dev",
|
||||||
|
"endsPattern": "Local:\\s+http://localhost:5173/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"isBackground": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "npm: preview server",
|
||||||
|
"type": "npm",
|
||||||
|
"script": "preview",
|
||||||
|
"path": ".",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
},
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "vite-preview",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "^.*$",
|
||||||
|
"file": 0,
|
||||||
|
"location": 0,
|
||||||
|
"message": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": ">.* preview",
|
||||||
|
"endsPattern": "Local:\\s+http://localhost:4173/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"isBackground": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user