【问题标题】:tsconfig.json include propertytsconfig.json 包含属性
【发布时间】: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


    【解决方案1】:

    默认情况下它是空的,所以我猜它只存在于files

    【讨论】:

      猜你喜欢
      • 2016-11-26
      • 2020-11-02
      • 2020-01-14
      • 2021-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-10
      • 2022-01-25
      相关资源
      最近更新 更多