Answers for "angular firebase deploy dist or dist/"

4

how to deploy angular site firebase

In the terminal:
$ ng build --prod
$ npm install -g firebase-tools
$ firebase login
$ firebase init //choose dist/<project-name> as public directory
//index.html should not be overwritten
$ firebase deploy
Posted by: Guest on November-03-2020
2

deploying angular app to firebase

{
  "hosting": {
    "public": "dist/your_application_name",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}
Posted by: Guest on September-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language