firebase's example "friendlychat" use vuefire rewrite.
Have a look at the https://vuefire-20161202.firebaseapp.com/
# install dependencies
yarn
# serve with hot reload at localhost:8080
yarn dev
# build for production with minification
yarn build
For detailed explanation on how things work, checkout the guide and docs for vue-loader.