tsconfig.app.json的使用 [英] Use of tsconfig.app.json

查看:545
本文介绍了tsconfig.app.json的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法理解Angular-2 cli项目中src文件夹中tsconfig.app.json的使用.我知道tsconfig.json是由Typescript编译器使用的,那为什么要使用tsconfig.app.json?

I am unable to understand the use of tsconfig.app.json in src folder in Angular-2 cli project. I know that tsconfig.json is use by typescript compiler, so why tsconfig.app.json?

推荐答案

标准angular项目中有一些tsconfig.json文件.这是您所询问的:

There are a few tsconfig.json files in the standard angular project. Here are the one you have asked about:

  • tsconfig.json提供了不同配置文件所源自的基本选项.
  • 应用程序tsconfig.app.json提供使用app文件夹中的代码时使用的选项.这使您可以进一步自定义tsconfig.json
  • 中的选项
  • The root tsconfig.json provides the base options that different config files derive from.
  • The app tsconfig.app.json provides the options used when working with code in the app folder. This allows you to further customize the options from tsconfig.json

其他tsconfig文件遵循相同的(基本+自定义)模式.

Other tsconfig files follow the same (base + customization) pattern.

这篇关于tsconfig.app.json的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆