In the terminal: $ ng build --prod $ npm install -g firebase-tools $ firebase login $ firebase init $ firebase deploy
{ "hosting": { "public": "dist/your_application_name", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "rewrites": [ { "source": "**", "destination": "/index.html" } ] } }