yunohost-admin/app/src/main.js
2020-10-23 17:19:10 +02:00

29 lines
720 B
JavaScript

import Vue from 'vue'
import App from './App.vue'
import BootstrapVue from 'bootstrap-vue'
import i18n from './i18n'
import router from './router'
import store from './store'
Vue.config.productionTip = false
// Styles are imported in `src/App.vue` <style>
Vue.use(BootstrapVue)
// Register global components
const requireComponent = require.context('@/components/globals', true, /\.(js|vue)$/i)
// For each matching file name...
requireComponent.keys().forEach((fileName) => {
// Get the component
const component = requireComponent(fileName).default
// Globally register the component
Vue.component(component.name, component)
})
new Vue({
i18n,
router,
store,
render: h => h(App)
}).$mount('#app')