2.0.0 • Published 4 years ago

@sqrtthree/vue-global-registration v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

npm

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