首先,我遵循的是使用/ dist文件夹的旧教程。然后经过一些研究,我发现角度6使用dist / project_folder。我将所有内容重建了百万次,经过整个过程而没有任何错误,但是转到url时,我看到了
Welcome
Firebase Hosting Setup Complete
You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!
firebase.json
{
"hosting": {
"public": "dist/starrating",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
怎么了?