【发布时间】:2021-04-05 16:57:18
【问题描述】:
我正在查看 tsconfig.json include 属性。在官方文档中它说'Specifies an array of filenames or patterns to include in the program.' 当创建角度应用程序时,它会自动生成这个属性
"include": [
"src/**/*.ts",
"src/**/*.d.ts"
],
但正如我在 Angular 应用程序中看到的那样,删除此属性后应用程序也可以正常工作。所以我的问题是为什么我们需要使用这个属性包含任何文件,如果我们不这样做,我们会丢失什么?
【问题讨论】:
标签: angular typescript tsconfig