Browse Source

perf[store]: add support to sub-modules (#2047)

pull/2114/head
Yamel Senih 6 years ago committed by 花裤衩
parent
commit
d0fcbbaa28
  1. 2
      src/store/index.js

2
src/store/index.js

@ -5,7 +5,7 @@ import getters from './getters'
Vue.use(Vuex)
// https://webpack.js.org/guides/dependency-management/#requirecontext
const modulesFiles = require.context('./modules', false, /\.js$/)
const modulesFiles = require.context('./modules', true, /\.js$/)
// you do not need `import app from './modules/app'`
// it will auto require all vuex module from modules file

Loading…
Cancel
Save