This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

vite-plugin-splitbee
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

🐝 vite-plugin-splitbee

A small plugin to add Splitbee support to Vite

License Vite Version Downloads

🦄 Usage

Install the dependency

npm install --save-dev vite-plugin-splitbee # yarn add -D vite-plugin-splitbee

Add it to your Vite config

// vite.config.ts
import { ViteSplitbee } from 'vite-plugin-splitbee';

export default {
  plugins: [
    ViteSplitbee(),
  ]
}

🔧 Configuration

export default {
  plugins: [
    ViteSplitbee({
      /// When using A/B testing, you can prevent the initial content flash by making the script blocking/synchronous (Optional) [Default: true]
      async: true,

      /// Whether to include Splitbee analytics during local development (Optional) [Default: false]
      dev: false,

      /// Number of milliseconds to wait before loading the Splitbee (Optional) [Default: 0]
      delay_timeout: 0,
    }),
  ]
}

⚠️ Requirements

Currently this plugin only supports Vite 2.x

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-splitbee

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

6.29 kB

Total Files

6

Last publish

Collaborators

  • nurodev