Yeah, I would recommend this approach for nearly everyone trying to get into electron. I'm really glad someone posted tutorial about electron forge that isn't outdated like 4 years ago and covers the integration of react framework. As of beginner-friendly aspect, I'm telling you, it's the best option to start and learn electron. Appreciate the video... 👍 7:27 just as you said, I used the resolve:{extensions:[(*any extension you want to be resolved, for example:) '.js', '.jsx', '.json']} webpack configuration and faced no problems whatsoever. Meanwhile, it is not a electron configuration but more of webpack configuration. Like I'm not trying to force-change your opinion, but I would die typing every extension manually.
I’m posting the video this week. Got a little swamped at work and havnt been able to make it. But making it tomorrow and will have it posted this week. Thank you for the feedback! Really appreciate it
Just posted the video in case you still need it. Skip to 9:30 if you just need the tailwind piece. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SiMIBb20S7c.html
Just posted the video in case you still need it. Skip to 9:30 if you just need the tailwind piece. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SiMIBb20S7c.html
I want to build electron app with playwrite feature like fill click check unchecked etc. What the step i have to take can u make video regarding this I will very help full 😊
Just posted the video in case you still need it. Skip to 9:30 if you just need the tailwind piece. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SiMIBb20S7c.html
If I understand your question correctly, then generally I wouldn't recommended it due to security issues, but it is possible. If you are going load/execute code from trusted sources then there is very little risk if enabled and possible. Its done quite often, just not the most recommended on some cases. In Electron, the renderer process runs in the same context as a web page, making it more vulnerable to potential security risks, especially if you load remote content. If you need to run it, then there is nodeIntegration boolean you can enable in your BrowserWindow promise. const createWindow = () => { const mainWindow = new BrowserWindow({ webPreferences: { nodeIntegration: true, // Enable Node.js integration preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY, }, autoHideMenuBar: true, }); Setting it up might require some testing and research on your end depending on use case, but it is very possible and done quite often with Electron. Hope that helped.
What about those of us without git? npm init electron-app@latest testapp -- --template=webpack . . . ■ Installing template dependencies An unhandled rejection has occurred inside Forge: Error: Command failed: git init 'git' is not recognized as an internal or external command, operable program or batch file.
You’ll have to install git if it’s not installed already. Follow the instructions here depending on your device git-scm.com/book/en/v2/Getting-Started-Installing-Git