angular-electron icon indicating copy to clipboard operation
angular-electron copied to clipboard

Loading preload scripts

Open ghost opened this issue 2 years ago • 1 comments

Hello.

I'd like to use this package together with your boilerplate, but it requires me to run some preload scripts.

I tried setting up a path to a preload file in webPreferences, but I get an error "Unable to load preload script".

ghost avatar Sep 01 '23 14:09 ghost

You cannot set preloading scripts without modifying a few files and also contextIsolation. This package is by default without preloading and you can directly access node in the renderer process. But if you need to use preload script, you can follow this issue here. This guy already configured some stuff for us and it works great. Cheers

egimataOptimad avatar Nov 14 '23 10:11 egimataOptimad