【问题标题】:Do I need to keep .watchmanconfig file in react-native project我需要在 react-native 项目中保留 .watchmanconfig 文件吗
【发布时间】:2018-03-15 11:02:10
【问题描述】:

默认的 react native 项目会生成 .watchmanconfig 文件,它只是一个空对象 {},我可以安全地删除它吗?

一个子问题是:有没有我可以做/参考的守望者配置以某种方式改善 react-native 项目体验?

【问题讨论】:

    标签: reactjs react-native watchman


    【解决方案1】:

    .watchmanconfig 可以安全删除。

    如果Watchman 没有找到相对于您的root 目录的.watchmanconfig,那么它只会在您的全局配置中加载/etc/watchman.json 中的watchman configuration

    除非您的 project files 变得非常大,如 here 所述,否则您不需要提供 Watchman 配置

    希望对你有帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-29
      • 2013-09-14
      • 2011-12-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多