> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/js/all/electron/packages/forge.md).

# Electron-Forge

Add webpack to get hotreloading

There is a [react template](https://github.com/electron-userland/electron-forge-templates), but for some reason it is deprecated or something..

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

### Building

```bash
npm run make #=> electron-forge make
```

## Config

example.forge.config.js

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