Firebase comes with static site hosting and a command line tool for deploying front-end applications. We'll need to install the firebase-tools npm package and compile a distribution-ready version of our application to another folder in our project.
npm install -g firebase-toolsto install the Firebase command line tool
firebase loginto log into your Firebase account for the CLI
firebase initto initialize the Firebase CLI for your project.
Select your Firebase instance for the project, and use
dist as your public folder. For other prompts, the default options are OK.
grunt buildto build a production-ready version of our application into the
firebase deployin the root of your codebase.
firebase deploy may prompt you to log in, but afterwards it should push your
application to Firebase's hosting service. Now if you visit
https://firebase-name-here.firebaseapp.com/ you should see our completed app,
ready for the world to use!