From 39b3affed917d5286117d62230828b292b838f5d Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Wed, 17 Mar 2021 12:30:44 +0100 Subject: [PATCH] Properly generate sourceMap and add launch config for chrome debugging --- .vscode/launch.json | 16 ++++++++++++++++ tsconfig.json | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..9371697e --- /dev/null +++ b/.vscode/launch.json @@ -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" + } + ] +} diff --git a/tsconfig.json b/tsconfig.json index d21accac..55672c07 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,8 @@ "esModuleInterop": true, "moduleResolution": "node", "forceConsistentCasingInFileNames": true, - "strict": true + "strict": true, + "sourceMap": true }, "include": ["src"] }