index.js 439 B

12345678910111213141516171819202122232425
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. // import example from './module-example'
  4. Vue.use(Vuex)
  5. /*
  6. * If not building with SSR mode, you can
  7. * directly export the Store instantiation
  8. */
  9. export default function (/* { ssrContext } */) {
  10. const Store = new Vuex.Store({
  11. modules: {
  12. // example
  13. },
  14. // enable strict mode (adds overhead!)
  15. // for dev mode only
  16. strict: process.env.DEV
  17. })
  18. return Store
  19. }