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