#Webpack electron boilerplate

8 messages · Page 1 of 1 (latest)

lost star
#

Hey guys,

I’m learning to work with electron, for a project with Overwolf. Basically, it is a modified electron binary named ow-electron (available on nom registry at @overwolf/ow-electron and @overwolf/ow-electron-builder)

I started my learning journey by copying: https://github.com/overwolf/ow-electron-packages-sample

But now I would like to try to setup a project from nothing, with electron best practice, but working with ow-electron. I looked a bit on forge electron, but did not managed to make its webpack boilerplate to use ow-electron binary.

So I would like to know if you have suggestion of guides that learn to setup an electron app without any package like forge above, with a production ready setup, and clean setup ! (I don’t feel like the template I linked is clean, but I might be wrong..)

If you have any question or needs more infos, tels me !

PS: I want to use react and typescript, and I have no idea what electron-builder is used for 😅

GitHub

Contribute to overwolf/ow-electron-packages-sample development by creating an account on GitHub.

worthy gazelle
#

It seems that overwolf electron is a fork of electron. If that is the case I would use electron-builder like they do in the sample app. Electron builder would be used when you want to build the app for different oses

lost star
#

Ok. Any idea why they are bundling each part in type module ? I’m not sure to understand the usage

#

And as target they use « electron-{main|preload|renderer} » but I can’t find any documentation about tha

worthy gazelle
#

Which file is that in? I am not sure what you are referring to

lost star
#

In each webpack.config file, they add a target option

worthy gazelle
lost star
#

Thanks a lot !