chore(play): add breakpoint debugging config for VS Code (#17447)

This commit is contained in:
qiang 2024-07-08 14:31:23 +08:00 committed by GitHub
parent 4a30d886a8
commit eb5595457e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 0 deletions

27
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,27 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome",
"request": "launch",
"type": "chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
},
{
"name": "Launch Edge",
"request": "launch",
"type": "msedge",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
},
{
"name": "Run and debug",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "dev"]
}
]
}

View File

@ -63,6 +63,9 @@ export default defineConfig(async ({ mode }) => {
host: true, host: true,
https: !!env.HTTPS, https: !!env.HTTPS,
}, },
build: {
sourcemap: true,
},
plugins: [ plugins: [
VueMacros({ VueMacros({
setupComponent: false, setupComponent: false,