@web-extend/rsbuild-plugin
v0.0.3
Published
An Rsbuild plugin for developing and building web extensions.
Maintainers
Readme
@web-extend/rsbuild-plugin
An Rsbuild plugin for developing and building browser extensions.
Quick Start
There are two ways to use this plugin.
- Use the
@web-extend/rsbuild-pluginpackage directly. - Use
web-extendCLI, which is a wrapper of@web-extend/rsbuild-plugin.
We recommend using the web-extend CLI to initialize a new extension project. Because it provides a more user-friendly experience.
Use @web-extend/rsbuild-plugin directly
Install the plugin.
npm add @web-extend/rsbuild-plugin -DAdd the plugin to your rsbuild.config.ts.
import { pluginWebExtend } from "@web-extend/rsbuild-plugin";
export default {
plugins: [pluginWebExtend()],
};Development workflow:
- Run
npm run devto start the development server. - Enable developer mode in browser extensions page and load the
distdirectory. - Run
npm run buildto build for production.
Use web-extend CLI
Run the following command to initialize a new extension project.
npx web-extend@latest initDocumentation
https://web-extend.github.io/web-extend
