Skip to content

Instantly share code, notes, and snippets.

@douggrubba
Last active Aug 28, 2021
Embed
What would you like to do?
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