-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da27f13
commit 0c02159
Showing
7 changed files
with
2,045 additions
and
889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
export default defineNuxtConfig({ | ||
modules: [ | ||
'nuxt-electron', | ||
], | ||
modules: ['nuxt-electron'], | ||
electron: { | ||
build: [ | ||
{ | ||
// Main-Process entry file of the Electron App. | ||
entry: 'electron/main.ts', | ||
}, | ||
{ | ||
entry: 'electron/preload.ts', | ||
onstart(options) { | ||
// Notify the Renderer-Process to reload the page when the Preload-Scripts build is complete, | ||
// instead of restarting the entire Electron App. | ||
options.reload() | ||
}, | ||
}, | ||
], | ||
renderer: {}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.