typescript
task.json 작성하기
정후닝
2020. 9. 3. 01:47
vc 단축키 커맨드 + 쉬프트 + P 눌르고

Tasks:Configure Task 선택

tsc: 빌드 - tsconfig.json 선택하면 .vccode 폴더안에 task.json 만들어지는데 아래있는 코드 넣으면 됨.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"problemMatcher": [
"$tsc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
이후에 커맨드 + 쉬프트 + b 누르면 빌드를 실행하게된다.