leo / electron-next

Build Electron apps using Next.js
https://github.com/leo/site/blob/beef3a7dc1dfd435a9d8377e3b1b59761ccb7fc7/pages/2017/electron-next.js
MIT License
548 stars 41 forks source link

<webview> preload doesn't take path relative to app folder #25

Closed nghiepdev closed 5 years ago

nghiepdev commented 5 years ago

Hi all,

The error is the following when using preload="./myFile.js":

Only "file:" protocol is supported in "preload" attribute.

I don't know where to put myFile.js 😭 for work fine both dev and prod.