Only use vuex-persist in production so that we don't have it saving in development
This commit is contained in:
parent
3df1218ebb
commit
367fb7b274
1 changed files with 5 additions and 4 deletions
|
|
@ -83,7 +83,8 @@ export default new Vuex.Store({
|
||||||
},
|
},
|
||||||
modules: {
|
modules: {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins:
|
||||||
new VuexPersistence().plugin,
|
process.env.NODE_ENV === `production`
|
||||||
]
|
? [new VuexPersistence({ key: `ghost-writer-save` }).plugin]
|
||||||
})
|
: []
|
||||||
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue