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

fix(vuex-electron): patch vuex-electron. #745

Open
wants to merge 4 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions template/src/main/index.js
Expand Up @@ -4,6 +4,13 @@
{{/if_eq}}
import { app, BrowserWindow } from 'electron'{{#if_eq eslintConfig 'airbnb'}} // eslint-disable-line{{/if_eq}}

{{#isEnabled plugins 'vuex'}}
/**
* Vuex will not work without this
*/
import '../renderer/store'{{#if_eq eslintConfig 'airbnb'}} // eslint-disable-line{{/if_eq}}

{{/isEnabled}}
/**
* Set `__static` path to static files in production
* https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html
Expand Down