【发布时间】:2018-07-19 07:57:30
【问题描述】:
按照所有必要的步骤,我在 Firebase 上托管了我的 Angular2 网站
firebase login
firebase init (single page app replace index.html file YES)(folder public)
firebase deploy
但我的网站只包含欢迎模板(欢迎 Firebase 托管设置完成等...)
我尝试删除/替换/自定义公用文件夹中的 index.html 文件,但欢迎模板仍然存在...
如何用我自己的网站替换这个模板??
我的 firebase.json 的内容:
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
【问题讨论】:
-
可以添加
firebase.json的内容吗?你构建的输出路径是什么? -
我添加了 firebase.json 的内容,但是如何在构建时看到我的输出路径?