1In the terminal:
2$ ng build --prod
3$ npm install -g firebase-tools
4$ firebase login
5$ firebase init //choose dist/<project-name> as public directory
6//index.html should not be overwritten
7$ firebase deploy
1{
2 "hosting": {
3 "public": "dist/your_application_name",
4 "ignore": [
5 "firebase.json",
6 "**/.*",
7 "**/node_modules/**"
8 ],
9 "rewrites": [
10 {
11 "source": "**",
12 "destination": "/index.html"
13 }
14 ]
15 }
16}