importVuefrom'vue'// https://webpack.js.org/guides/dependency-management/#requirecontextconstmodulesFiles=require.context('./',true,/\.vue$/)// it will auto require all vuex module from modules filemodulesFiles.keys().reduce((modules,modulePath)=>{Vue.component(modulePath.replace(/^\.\/(.*)\.\w+$/,'$1'),modulePath)},{})