瀏覽代碼

Add automated rebuilding when debugging

ApisNecros 1 年之前
父節點
當前提交
9c246a41fb
共有 2 個文件被更改,包括 15 次插入1 次删除
  1. 2 1
      .vscode/launch.json
  2. 13 0
      .vscode/tasks.json

+ 2 - 1
.vscode/launch.json

@@ -14,7 +14,8 @@
             "program": "${workspaceFolder}/demo/demo.mjs",
             "outFiles": [
                 "${workspaceFolder}/**/*.js"
-            ]
+            ],
+            "preLaunchTask": "build"
         }
     ]
 }

+ 13 - 0
.vscode/tasks.json

@@ -0,0 +1,13 @@
+{
+    "version": "2.0.0",
+    "tasks": [
+        {
+            "label": "build",
+            "command": "npm",
+            "args": ["run", "build"],
+            "presentation": {
+                "close": true
+            }
+        }
+    ]
+}