firebase - 服务 Firebase 函数不会在 Windows 上热重载
问题描述
使用firebase serve命令在本地提供 Firebase 功能应该可以启用热重载,但这似乎不适用于 Windows,即使安装了watchman。npm build
除了在每次代码更改后运行之外,还有更好的解决方案吗?
解决方案
我混合了2个答案:
"scripts": {
"serve": "npm run build -- --watch | firebase emulators:start --only functions",
...
}
推荐阅读
- android - NDK(C/C++) 代码上的 Android `App-Specific` 存储访问
- autodesk-forge - 在 forge 查看器中,markupgui 扩展设计已过时
- c++ - 从 C++ 中的二维数组初始化二维向量
- r - 从二元正态分布ggplot2中检索Z值
- grep - 使用带有目录参数的grep时如何限制文件扩展名?
- ruby - Pod repo 更新 - 在 MacOS m1 上找不到符号 ffi
- android - GStreamer mp4mux 使用自定义应用程序提供“缓冲区没有 PTS”错误
- javascript - Webpack 编译但不提供文件
- javascript - Flask - 使用 Python 变量动态更新 JavaScript
- javascript - AR.JS - GLTF 模型在标记上晃动