index.js 376 B

1234567891011121314
  1. /**
  2. * The file enables `@/store/task.js` to import all vuex modules
  3. * in a one-shot manner. There should not be any reason to edit this file.
  4. */
  5. const files = require.context('.', false, /\.js$/)
  6. const modules = {}
  7. files.keys().forEach(key => {
  8. if (key === './index.js') return
  9. modules[key.replace(/(\.\/|\.js)/g, '')] = files(key).default
  10. })
  11. export default modules