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

0.3.6 • Public • Published

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-games-sdk

# npm
npm install --dev vite-plugin-rune rune-games-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

Package Sidebar

Install

npm i vite-plugin-rune

Weekly Downloads

77

Version

0.3.6

License

MIT

Unpacked Size

22.4 kB

Total Files

21

Last publish

Collaborators

  • bfelbo