text: import Vue from 'vue'
  
  import Cookies from 'js-cookie'
  
  import 'normalize.css/normalize.css' // a modern alternative to CSS resets
  
  import Element from 'element-ui'
  import './styles/element-variables.scss'
  
  import './styles/index.scss' // global css
  
  import App from './App.vue'
  import router from './router'
  import store from './store'
  import directives from './directive'
  
  import './icons' // icon
  import './permission' // permission control
  
  if (process.env.NODE_ENV === 'production') {
    const { mockXHR } = require('../mock')
    mockXHR()
  }
  
  Vue.use(directives)
  Vue.use(Element, {
    size: Cookies.get('size') || 'medium' // set element-ui default size
  })
  
  Vue.config.productionTip = false
  
  new Vue({
    router,
    store,
    render: (h) => h(App)
  }).$mount('#app')
  