A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --reportFor a detailed explanation on how things work, check out the guide and docs for vue-loader.
#Hosting:
To create dist folder
npm run build
firebase login
firebase init
Choose Hosting and Database services
? What do you want to use as your public directory? dist ? Configure as a single-page app (rewrite all urls to /index.html)? No ? Set up automatic builds and deploys with GitHub? No
- Wrote dist/404.html ? File dist/index.html already exists. Overwrite? No
npm ng build
Wait till it is deployed. Shouldn't take too long.
firebase deploy
#Turn off hosting
firebase hosting: disable