host angular in firebase code example
Example 1: how to deploy angular site firebase
In the terminal:
$ ng build --prod
$ npm install -g firebase-tools
$ firebase login
$ firebase init
$ firebase deploy
Example 2: deploying angular app to firebase
{
"hosting": {
"public": "dist/your_application_name",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}