javascript - 如何更改 index.html(firebase 托管)以显示项目内容?
问题描述
我是 react-native 初学者,我尝试托管我的项目,但最终启动了一个显示 firebase 欢迎屏幕的 Web 应用程序。这是因为做 init firebase 时生成的 index.html。index.html 文件如下所示:
如何用我自己的前端代码替换 Index.html?我有一个 index.js 文件;这有什么关系吗?
非常感谢你的帮助!
解决方案
当你跑
firebase init
从您的项目文件夹中,然后选择
使用现有项目
然后选择您拥有 index.html 的文件夹(通常是 ./build)并说“否”以覆盖。
推荐阅读
- java - 了解 Javafx 运行时错误
- python - 如何将此平面字典转移到嵌套字典?
- qt - Qt - 如何将边缘节点添加到 QWidget 上,使用户能够拖动以调整 QWidget 的大小
- javascript - 我无法访问 HTMLCollection
- r - R中的K最近邻居闪亮不同的长度
- javascript - 在 light DOM 中渲染一个 lit-element 以与 stripe.js 一起使用
- kubernetes - k8s 在默认命名空间中自动创建 rc 和 pods
- javascript - 捕获 Google Chrome 开发工具显示数据
- python - 线性N-way-equal问题的最小二乘
- ios - 字符串到 int 的转换不能快速工作