25 lines
667 B
JavaScript
25 lines
667 B
JavaScript
// The Vue build version to load with the `import` command
|
|
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
|
import Vue from 'vue'
|
|
import App from './App'
|
|
import router from './router'
|
|
import auth from './auth'
|
|
|
|
// or import all icons if you don't care about bundle size
|
|
import 'vue-awesome/icons'
|
|
/* Register component with one of 2 methods */
|
|
import Icon from 'vue-awesome/components/Icon'
|
|
|
|
// globally (in your main .js file)
|
|
Vue.component('icon', Icon)
|
|
// Check the user's auth status when the app starts
|
|
auth.checkAuth()
|
|
|
|
/* eslint-disable no-new */
|
|
new Vue({
|
|
el: '#app',
|
|
router,
|
|
template: '<App/>',
|
|
components: { App }
|
|
})
|