Skip to content

Instantly share code, notes, and snippets.

@douggrubba
Last active August 28, 2021 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douggrubba/f6228f63b9f6382f92b46311f84a9c28 to your computer and use it in GitHub Desktop.
Save douggrubba/f6228f63b9f6382f92b46311f84a9c28 to your computer and use it in GitHub Desktop.
Store index to load our modules
import { createStore, createLogger } from 'vuex'
import user from './modules/user'
const debug = process.env.NODE_ENV !== 'production'
export default createStore({
modules: {
user
},
strict: debug,
plugins: debug ? [createLogger()] : []
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment