diff --git a/template/src/main/index.js b/template/src/main/index.js index 6f57e9f2..f43a5a27 100644 --- a/template/src/main/index.js +++ b/template/src/main/index.js @@ -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