标签:
TypeScript will always compile even if there are ridiculous errors in your project. This lesson shows how to configure your .tsconfig with "noEmitOnError" so that no files are output if tsc reports an error.
{ "compilerOptions": { "module": "commonjs", "target": "es5", "noImplicitAny": false, "sourceMap": false, "outDir": "./dist", "noEmitOnError": true }, "files": [ "main.ts" ] }
[TypeScript] Stopping a TypeScript Build When Errors Are Found
标签:
原文地址:http://www.cnblogs.com/Answer1215/p/5571890.html