1.0.9 • Published 9 months ago

vite-plugin-rune v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

vite-plugin-rune

Plugin to use Rune SDK with Vite. This plugin adds an SDK script line into your index.html file and creates a logic.js file to simplify your build setup. See Syncing Game State for more info on how Rune's SDK uses a logic.js file to seamlessly sync game state across players.

Install

# yarn
yarn add --dev vite-plugin-rune rune-sdk

# npm
npm install --dev vite-plugin-rune rune-sdk

Usage

// vite.config.ts
import { defineConfig } from "vite"
import rune from "vite-plugin-rune"

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [rune({ logicPath: "./src/logic.ts" })],
})

Which SDK version does this plugin use?

The Vite plugin uses the local SDK version that you've installed through npm/yarn. To update your SDK version, you just update it as normal.

License

MIT © Rune AI Inc. 2024

1.0.9

9 months ago

1.0.8

9 months ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago