From Dev.to
How to set up Electron with React, TypeScript and webpack
The short version Electron needs two webpack builds: the main process with the electron-main target, and the React renderer with the web or electron-renderer target. In development the Electron win...
