Last active
August 28, 2021 15:49
-
-
Save douggrubba/f6228f63b9f6382f92b46311f84a9c28 to your computer and use it in GitHub Desktop.
Store index to load our modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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