@sqrtthree/vue-global-registration
v2.0.0
Published
Register global Vue components with require.context.
Downloads
2
Maintainers
Readme
vue-global-registration
Register global Vue components with require.context.
How to use
yarn add @sqrtthree/vue-global-registration
# or use npm
npm install @sqrtthree/vue-global-registration
import Vue from 'vue'
import globalRegistration from '@sqrtthree/vue-global-registration'
Vue.use(
globalRegistration(
require.context('./components', true, /[a-zA-Z]\w+\.(vue|js)$/)
)
))
sqrtthree.com · GitHub @sqrthree · Twitter @sqrtthree