Skip to content

Instantly share code, notes, and snippets.

Last active Aug 28, 2021
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: {
strict: debug,
plugins: debug ? [createLogger()] : []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment