我是否需要在 react-native 项目中保留 .watchmanconfig 文件 [英] Do I need to keep .watchmanconfig file in react-native project

查看:45
本文介绍了我是否需要在 react-native 项目中保留 .watchmanconfig 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

default react native project generates .watchmanconfig file that is simply empty object {}, can I safely delete this?

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

A subquestion would be: is there any watchman configuration I can do / refference to improve react-native project experience somehow?

推荐答案

.watchmanconfig 可以安全删除.

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

If Watchman does not find the .watchmanconfig relative to your root directory, then it will simply load the watchman configuration present in /etc/watchman.json in your global configuration.

除非您的项目文件变得非常大,否则您不需要提供Watchman配置这里

You don't need to provide a Watchman Configuration unless your project files become very large as mentioned here

希望有帮助!

这篇关于我是否需要在 react-native 项目中保留 .watchmanconfig 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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