简体   繁体   English

使用tsconfig.app.json

[英]Use of tsconfig.app.json

I am unable to understand the use of tsconfig.app.json in src folder in Angular-2 cli project. 我无法理解在Angular-2 cli项目的src文件夹中使用tsconfig.app.json。 I know that tsconfig.json is use by typescript compiler, so why tsconfig.app.json? 我知道tsconfig.json是由typescript编译器使用的,为什么tsconfig.app.json?

There are a few tsconfig.json files in the standard angular project. 标准角度项目中有一些tsconfig.json文件。 Here are the one you have asked about: 以下是您询问的问题:

  • The root tsconfig.json provides the base options that different config files derive from. tsconfig.json提供了不同配置文件派生自的基本选项。
  • The app tsconfig.app.json provides the options used when working with code in the app folder. app tsconfig.app.json提供了在app文件夹中处理代码时使用的选项。 This allows you to further customize the options from tsconfig.json 这允许您进一步自定义tsconfig.json的选项

Other tsconfig files follow the same (base + customization) pattern. 其他tsconfig文件遵循相同(基本+自定义)模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM