首页 > 解决方案 > 服务 Firebase 函数不会在 Windows 上热重载

问题描述

使用firebase serve命令在本地提供 Firebase 功能应该可以启用热重载,但这似乎不适用于 Windows,即使安装了watchmannpm build除了在每次代码更改后运行之外,还有更好的解决方案吗?

标签: firebasegoogle-cloud-functionswatchmanhot-reload

解决方案


我混合了2个答案:

"scripts": {
   "serve": "npm run build -- --watch | firebase emulators:start --only functions",
   ...
}

推荐阅读