SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

why preload.js doesn't work #1054

Open DongWenHai opened 4 years ago

DongWenHai commented 4 years ago

I've configured preload.js,but it doesn't work

new BrowserWindow({ resizable:true,//unable scale alwaysOnTop:true, fullscreen:true, acceptFirstMouse:true, autoHideMenuBar:true, frame:false, titleBarStyle:'hidden', webPreferences:{ nodeIntegration:true, nodeIntegrationInWorker:true, devTools:true, preload:require('path').join(__dirname, 'preload.js') } })

Tell me about your development environment.
joshuafc commented 3 years ago

have you solved the problem?

DongWenHai commented 3 years ago

No.But I used another framework.


发件人: joshuafc @.> 发送时间: 2021年6月30日 17:43 收件人: SimulatedGREG/electron-vue @.> 抄送: DongWenHai @.>; Author @.> 主题: Re: [SimulatedGREG/electron-vue] why preload.js doesn't work (#1054)

have you solved the problem?

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/SimulatedGREG/electron-vue/issues/1054#issuecomment-871253203, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIEQ4NCTDFQXGZRPAJOTC3LTVLRMDANCNFSM4T4H476Q.