Example:
I have three html files in firebase hosting:
- index.html
- test1.html
- test2.html
Question:
How to remove html files test1.html ? I was confused to remove that, whether to set the json file firebase.json or there are other ways? Thanks for your help
Depending on how much you want to remove, you have a couple options:
Remove a file
To remove a single file, delete it locally and re-deploy.
$ rm public/foo.html
$ firebase deploy
Disable hosting
If you want to remove an entire site on Firebase hosting, you can disable hosting entirely.
$ firebase hosting:disable
? Are you sure you want to disable Firebase Hosting?
This will immediately make your site inaccessible! Yes
✔ Hosting has been disabled for example-firebase. Deploy a new version to re-enable.
来源:https://stackoverflow.com/questions/39202179/how-do-you-remove-html-files-from-firebase-hosting