index.js 365 Bytes
Newer Older
wangdanlei's avatar
wangdanlei committed
1 2 3 4 5 6 7
// import Vue from 'vue'
// // https://webpack.js.org/guides/dependency-management/#requirecontext
// const modulesFiles = require.context('./', true, /\.vue$/)
// // it will auto require all vuex module from modules file
// modulesFiles.keys().reduce((modules, modulePath) => {
//   Vue.component(modulePath.replace(/^\.\/(.*)\.\w+$/, '$1'), modulePath)
// }, {})