vscode tasks
.vscode/tasks.json
用法
环境变量需要格外注意 source ~/.zshrc
{
"version": "2.0.0",
"tasks": [
{
"label": "npx tsc -w",
"group": { "kind": "build", "isDefault": true },
"type": "shell",
"command": "source ~/.zshrc && npm run build",
"problemMatcher": []
}
]
}