Skip to content

Instantly share code, notes, and snippets.

@mhdelta
Last active May 31, 2020 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhdelta/c8640759dfd758bfd98dbc52633f5b91 to your computer and use it in GitHub Desktop.
Save mhdelta/c8640759dfd758bfd98dbc52633f5b91 to your computer and use it in GitHub Desktop.
  1. npm install -g firebase-tools
  2. firebase login
  3. firebase init
  4. firebase init hosting

After this you will be asked the following question “What do you want to use as your public directory?” In Angular 7 you must include your application’s name in this field: “dist/YourProjectName.” . Before Angular 6 using “dist” was sufficient. Next specify “yes” to configuring as a single-page application and “no” to overwriting your existing index.html (if applicable).

  1. ng build --prod
  2. firebase deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment