electron-rsbuild is a tool built on rsbuild, based on a core plugin approach, respecting rsbuild APIs and configuration, providing a complete set of project capabilities:
electron-rsbuild template projects.electron-rsbuild to run an Electron project directly without installing electron-rsbuild.You can read the backstory in the Introduction chapter.
This project has not undergone extensive testing. Please use with caution. Recommendations: Node 18+, rsbuild 1.0+
Quickly create a template using the command line tool provided by the electron-rsbuild community.
For React projects, you need to manually install @rsbuild/plugin-react:
This plugin is provided by the official rsbuild team. Please refer to the documentation for details.
TODO
The following templates are currently available:
| Template | Description | Options |
|---|---|---|
| electron-react | React 18 | Typescript |
| electron-vue | Vue 3 | TODO |
If you don't want to use the scaffold provided by electron-rsbuild, you can also install the following three configured and plugin-based rsbuild plugins to start rsbuild:
@electron-rsbuild/plugin-main@electron-rsbuild/plugin-preload@electron-rsbuild/plugin-rendererConfigure in rsbuild.config.ts:
@electron-rsbuild/coreThe core package of electron-rsbuild, providing plugin-based development environment invocation, CLI commands, etc.
create-electron-rsbuildUsed to create electron-rsbuild project templates