forked from vbenjs/vue-vben-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.json
48 lines (48 loc) · 1.46 KB
/
launch.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"version": "0.2.0",
"configurations": [
// node环境调试当前激活编辑器ts/js代码
{
"type": "node",
"request": "launch",
"name": "file",
"cwd": "${workspaceFolder}",
"program": "${file}",
// .vscode 目录又不认识了???
"preLaunchTask": "tsc: 监视 - build/tsconfig.json", // cn
// "preLaunchTask": "tsc: watch - build/tsconfig.json", // en
"outFiles": ["${workspaceFolder}/compile/**/*.js"]
// "args": ["--experimental-modules", "--loader", "./loader.mjs"]
},
// 调试开发环境脚本
{
"type": "node",
"request": "launch",
"name": "dev",
// "stopOnEntry": true,
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/node_modules/@vue/cli-service/bin/vue-cli-service.js",
"args": ["serve", "--open"]
},
// 调试生产环境脚本
{
"type": "node",
"request": "launch",
"name": "build",
// "stopOnEntry": true,
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/node_modules/@vue/cli-service/bin/vue-cli-service.js",
"args": ["build"]
},
// 调试单元测试脚本
{
"type": "node",
"request": "launch",
"name": "test:unit",
// "stopOnEntry": true,
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/node_modules/@vue/cli-service/bin/vue-cli-service.js",
"args": ["test:unit", "--detectOpenHandles"]
}
]
}