mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
12 lines
411 B
JavaScript
12 lines
411 B
JavaScript
import Vue from 'vue'
|
|
|
|
const componentFiles = require.context('../components/_new/generic', true, /Base[a-zA-Z]+\.vue/)
|
|
|
|
componentFiles.keys().forEach(fileName => {
|
|
const component = componentFiles(fileName)
|
|
const componentConfig = component.default || component
|
|
const componentName = component.name || fileName.replace(/^.+\//, '').replace('.vue', '')
|
|
|
|
Vue.component(componentName, componentConfig)
|
|
})
|