https://github.com/m1911star/rsbuild-plugin-posthog
rsbuild plugin for posthog https://posthog.com/
https://github.com/m1911star/rsbuild-plugin-posthog
Last synced: 6 months ago
JSON representation
rsbuild plugin for posthog https://posthog.com/
- Host: GitHub
- URL: https://github.com/m1911star/rsbuild-plugin-posthog
- Owner: m1911star
- License: mit
- Created: 2024-03-25T04:20:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-08T09:57:06.000Z (over 1 year ago)
- Last Synced: 2024-11-07T13:55:14.415Z (12 months ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rstack - rsbuild-plugin-posthog
README
# rsbuild-plugin-posthog
rsbuild-plugin-posthog is a Rsbuild plugin for Posthog.
## Usage
Install:
```bash
npm add rsbuild-plugin-posthog -D
```
Add plugin to your `rsbuild.config.ts`:
```ts
// rsbuild.config.ts
import { pluginPosthog } from 'rsbuild-plugin-posthog';
export default {
plugins: [pluginPosthog({
apiKey: 'xxx',
apiHost: 'xxxx'
})],
};
```
## Options
Here are the available options:
| Name | Type |
| ---- | --------- |
| apiKey | `string` |
| apiHost | `string` |
## License
[MIT](./LICENSE).