https://github.com/rspack-contrib/rsbuild-plugin-template
Use this template to create your own Rsbuild plugin 🌟
https://github.com/rspack-contrib/rsbuild-plugin-template
rsbuild rsbuild-plugin rspack
Last synced: 2 days ago
JSON representation
Use this template to create your own Rsbuild plugin 🌟
- Host: GitHub
- URL: https://github.com/rspack-contrib/rsbuild-plugin-template
- Owner: rspack-contrib
- License: mit
- Created: 2023-11-15T08:31:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-01T05:37:01.000Z (15 days ago)
- Last Synced: 2025-04-14T10:13:32.751Z (2 days ago)
- Topics: rsbuild, rsbuild-plugin, rspack
- Language: TypeScript
- Homepage: https://rsbuild.dev/plugins/dev/index
- Size: 118 KB
- Stars: 19
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rspack - rsbuild-plugin-template
README
# rsbuild-plugin-example
Example plugin for Rsbuild.
## Usage
Install:
```bash
npm add rsbuild-plugin-example -D
```Add plugin to your `rsbuild.config.ts`:
```ts
// rsbuild.config.ts
import { pluginExample } from "rsbuild-plugin-example";export default {
plugins: [pluginExample()],
};
```## Options
### foo
Some description.
- Type: `string`
- Default: `undefined`
- Example:```js
pluginExample({
foo: "bar",
});
```## License
[MIT](./LICENSE).