Properly generate sourceMap and add launch config for chrome debugging

This commit is contained in:
Johannes Loher 2021-03-17 12:30:44 +01:00
parent 5d0ccf8e3e
commit 39b3affed9
2 changed files with 18 additions and 1 deletions

16
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"runtimeExecutable": "/usr/bin/chromium",
"name": "Launch Chrome against localhost",
"url": "http://localhost:30000/game",
"webRoot": "${workspaceFolder}/dist"
}
]
}

View file

@ -6,7 +6,8 @@
"esModuleInterop": true,
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"strict": true
"strict": true,
"sourceMap": true
},
"include": ["src"]
}