0
0
Fork 0

Only use vuex-persist in production so that we don't have it saving in development

This commit is contained in:
Oliver-Akins 2021-01-01 12:56:06 -07:00
parent 3df1218ebb
commit 367fb7b274

View file

@ -83,7 +83,8 @@ export default new Vuex.Store({
},
modules: {
},
plugins: [
new VuexPersistence().plugin,
]
})
plugins:
process.env.NODE_ENV === `production`
? [new VuexPersistence({ key: `ghost-writer-save` }).plugin]
: []
});