mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
fix: failed load preload.js.
This commit is contained in:
parent
66a9f79c72
commit
f28a05bccb
@ -25,7 +25,7 @@
|
||||
],
|
||||
"extraResources": {
|
||||
"from": "src/preload",
|
||||
"to": "app/dist/preload"
|
||||
"to": "app/src/preload"
|
||||
},
|
||||
"mac": {
|
||||
"artifactName": "${productName}_${version}.${ext}",
|
||||
|
@ -16,7 +16,7 @@ function createWin() {
|
||||
height: 768,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
preload: join(__dirname, '../preload/index.js'),
|
||||
preload: join(__dirname, '../../src/preload/index.js'),
|
||||
},
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user