Skip to content

Commit 7de760d

Browse files
committed
Use an actual watch task when debugging
Signed-off-by: Seb Julliand <[email protected]>
1 parent 10d19eb commit 7de760d

File tree

3 files changed

+25
-155
lines changed

3 files changed

+25
-155
lines changed

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"outFiles": [
1616
"${workspaceFolder}/dist/**/*.js"
1717
],
18-
"preLaunchTask": "npm: webpack",
18+
"preLaunchTask": "${defaultBuildTask}",
1919
"sourceMaps": true
2020
},
2121
{
@@ -28,7 +28,7 @@
2828
"outFiles": [
2929
"${workspaceFolder}/dist/**/*.js"
3030
],
31-
"preLaunchTask": "npm: webpack",
31+
"preLaunchTask": "${defaultBuildTask}",
3232
"sourceMaps": true,
3333
"env": {
3434
"testing": "true"

.vscode/tasks.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "webpack-dev",
9+
"problemMatcher": "$ts-webpack-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never",
13+
"group": "watchers"
14+
},
15+
"group": {
16+
"kind": "build",
17+
"isDefault": true
18+
}
19+
}
20+
]
21+
}

package-lock.json

Lines changed: 2 additions & 153 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)