import Vue from 'vue'
import VueTouch from 'vue-touch'
import VueSVGIcon from 'vue-svgicon'
import VueFeatherIcon from 'vue-feather-icon'

import VueFire from 'vuefire'
import firebase from 'firebase'
import { sync } from 'vuex-router-sync'
import localforage from 'localforage'
import 'localforage-startswith'

import App from '@/app/App'
import router from './router'
import store from './store'

firebase.initializeApp({
  apiKey: process.env.FIREBASE_API_KEY,
  authDomain: process.env.FIREBASE_AUTH_DOMAIN,
  databaseURL: process.env.FIREBASE_DATABASE_URL
})

localforage.config({
  name: 'happy-plants',
  driver: [localforage.INDEXEDDB, localforage.LOCALSTORAGE]
})

Vue.config.productionTip = process.env.NODE_ENV === 'production'

Vue.use(VueFire)
Vue.use(VueFeatherIcon)
Vue.use(VueSVGIcon)
Vue.use(VueTouch)

sync(store, router)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})

@@ -88,54 +88,8 @@
 con'
-%0Aimport VueFeatherIcon from 'vue-feather-icon'
 %0A%0Aim
@@ -708,32 +708,8 @@
 re)%0A
-Vue.use(VueFeatherIcon)%0A
 Vue.

Remove VueFeatherIcon as plugin