The plugin system is based on rsbuild. Please refer to the rsbuild plugins section for implementation details.
electron-rsbuild
provides plugins that allow users to start Electron projects using rsbuild
without installing the full configuration setup.
Install the following plugins:
Configure in rsbuild.config.ts
:
Handles the Electron main process module. You can import the default configuration:
Handles the Electron preload script module. You can import the default configuration:
Handles the Electron renderer process module. You can import the default configuration:
Currently, it only takes effect as a pure plugin with plugin-*
in your rsbuild
project.
electron-rsbuild >=0.0.12 allows users to pass plugin parameters.
Make the following changes in your rsbuild.config.ts
:
The parameters must conform to the EnvironmentConfig
type definition in @rsbuild/core
. The parameters passed by the user will be merged into it.