提供Firebase功能不会在Windows上热重载 [英] Serving Firebase Functions doesn't hot reload on Windows

查看:113
本文介绍了提供Firebase功能不会在Windows上热重载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应该使用 firebase serve 命令在本地提供Firebase功能热重载,但是即使使用解决方案

我按照以下方式进行操作(除了galki的回答):

firebase serve --only functions

在另一个终端标签中,我只使用

npm run build -- --watch 

在功能目录中的

.这样,您可以更快地开发周期.

Serving Firebase Functions locally with the firebase serve command is supposed to enable hot reloading but this doesn't seem to work on windows, even with watchman installed. Is there a better solution aside from running npm build after each code change?

解决方案

I do it the following way (additionally to galki`s answer):

firebase serve --only functions

and in another terminal tab I just use

npm run build -- --watch 

from within functions directory. This way you have some kind of faster dev cycle.

这篇关于提供Firebase功能不会在Windows上热重载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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