Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

disabled vuex-electron in build:web #751

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions template/src/renderer/store/index.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
import Vue from 'vue'
import Vuex from 'vuex'

{{#isEnabled plugins 'vuex-electron'}}
import { createPersistedState, createSharedMutations } from 'vuex-electron'

{{/isEnabled}}
import modules from './modules'

Vue.use(Vuex)

export default new Vuex.Store({
modules,
{{#isEnabled plugins 'vuex-electron'}}
plugins: [
createPersistedState(),
createSharedMutations()
plugins: process.env.IS_WEB ? [] : [
require('vuex-electron').createPersistedState(),
require('vuex-electron').createSharedMutations()
],
{{/isEnabled}}
strict: process.env.NODE_ENV !== 'production'
Expand Down