add Attach to Browser debug config (#6456)

Signed-off-by: Evgenii Rechkalov <snorkysnark@gmail.com>
This commit is contained in:
Francis The Basilisk 2024-09-02 18:11:39 +02:00 committed by GitHub
parent 8da14bb5d7
commit 069c69b7db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 3 deletions

12
.vscode/launch.json vendored
View File

@ -411,6 +411,16 @@
"runtimeVersion": "20",
"sourceMaps": true,
"cwd": "${workspaceRoot}/services/telegram-bot/pod-telegram-bot"
}
},
{
"type": "chrome",
"name": "Attach to Browser",
"request": "attach",
"urlFilter": "http://localhost:8080/*",
"port": 9222,
"sourceMapPathOverrides": {
"webpack://*": "${workspaceFolder}/*",
}
},
]
}

View File

@ -54,7 +54,7 @@ module.exports = [
options: {
target: 'es2021',
keepNames: true,
minify: !prod,
minify: prod,
sourcemap: !prod
}
}
@ -148,7 +148,7 @@ module.exports = [
options: {
target: 'es2021',
keepNames: true,
minify: !prod,
minify: prod,
sourcemap: true
},
exclude: /node_modules/,