add debug component and global components import

This commit is contained in:
axolotle
2021-03-08 15:47:14 +01:00
parent 7ed689df19
commit f6865268f4
2 changed files with 35 additions and 1 deletions
+15 -1
View File
@@ -8,10 +8,24 @@ import store from './store'
import App from './App'
Vue.use(BootstrapVue)
Vue.use(BootstrapVue, {
BButton: { pill: true }
})
Vue.use(Meta)
Vue.use(Vue2TouchEvents)
// 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({
router,
store,