- npm install -g firebase-tools
- firebase login
- firebase init
- 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).
- ng build --prod
- firebase deploy