웹 양식 프로젝트에서 typescript를 사용하려고합니다. ts 파일을 만들었지 만 빌드 할 때 js 파일이 만들어지지 않았습니다. tsconfig.json 파일이 생성되었으며 다음과 같습니다.
{
"compileOnSave": true,
"compilerOptions": {
"types": [],
"sourceMap": true,
"target": "es5",
"noEmitOnError": true
},
"exclude": [
"node_modules",
"obj",
"bin"
]
}
js를 뭉치 게하는 행운이 없습니다. 이것은 Visual Studio 커뮤니티 에디션입니다. 고마워 섀넌
다음은 새 구성 파일입니다. 이것은 작동합니다
{
"compileOnSave": true,
"compilerOptions": {
"types": [],
"sourceMap": true,
"target": "es5",
"noEmitOnError": true
},
"exclude": [
"node_modules",
"obj",
"bin"
],
"include": [ "/CustomControls/Lookup" ]
}
스크립트 경로를 포함해야합니다. json 파일에는 제외 섹션 만 있습니다. 예를 들면
"include": ["wwwroot/lib"]
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다