Electron-Forge

Add webpack to get hotreloading

There is a react template, but for some reason it is deprecated or something..

npx create-electron-app electron --template=webpack
cd electron #preinstalled to yarn.lock
rm -rf yarn.lock node_modules
npm install
npm start

Building

npm run make #=> electron-forge make

Config

example.forge.config.js

{
  packagerConfig: { ... },
  electronRebuildConfig: { ... },
  makers: [ ... ],
  publishers: [ ... ],
  plugins: [ ... ],
  hooks: { ... },
  buildIdentifier: 'my-build'
}

Last updated