Angular-cli 忽略 tsconfig.json [英] Angular-cli ignores tsconfig.json

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

问题描述

使用

"@angular/cli": "^1.0.0"

@angular/cli 忽略 tsconfig.json

该项目编译得很好编辑/删除tsconfig.json

The project compiles just fine editing / removing tsconfig.json

这是为什么?

推荐答案

尽管看起来很愚蠢,angular-cli 的 tsconfig.json 文件位于 src/tsconfig 内.app.json

As stupid as it may seem, the angular-cli 's tsconfig.json file is located inside src/tsconfig.app.json

tsconfig.json 将被编辑器(例如 vscode)使用.

The root tsconfig.json will be used by editors (such as vscode).

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

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