https://github.com/zardoy/esbuild-electron
Fast and flexible Electron build tool powered by esbuild. Features hot-reload, production builds, and easy configuration.
https://github.com/zardoy/esbuild-electron
Last synced: 9 months ago
JSON representation
Fast and flexible Electron build tool powered by esbuild. Features hot-reload, production builds, and easy configuration.
- Host: GitHub
- URL: https://github.com/zardoy/esbuild-electron
- Owner: zardoy
- License: mit
- Created: 2021-08-22T19:16:42.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-08-24T12:20:35.000Z (10 months ago)
- Last Synced: 2025-09-26T05:31:53.668Z (9 months ago)
- Language: TypeScript
- Homepage: https://npmjs.com/esbuild-electron
- Size: 353 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# electron-esbuild
Fast and flexible Electron build tool powered by esbuild. Features hot-reload, production builds, and easy configuration.
## Features
- ⚡ Super fast builds with esbuild
- 🔄 Hot reload in development
- 🎮 Manual restart with 'r' key
- 🔧 Flexible configuration
- 🐛 Both dev and production builds
## Quick Start
```bash
npm install electron-esbuild --save-dev
```
Add scripts to your package.json:
```json
{
"scripts": {
"start": "electron-esbuild dev",
"start:debug": "electron-esbuild dev --debug",
"build": "electron-esbuild production",
"build:debug": "electron-esbuild production --debug"
}
}
```
## Configuration
Create `.electron-esbuildrc.json` in your project root:
```json
{
"mode": "dev",
"outdir": "node_modules/.electron-esbuild",
"outdirProduction": "dist",
"autoRestart": true,
"debug": false,
"entryPoints": {
"base": "src/electron",
"main": "index.ts",
"preload": "preload.ts"
}
}
```
- `npm run build:debug` - Build for production with debugging enabled
## License
MIT