0.3.3 • Published 14 days ago

vite-plugin-dusk v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

vite-plugin-dusk

Plugin to use Dusk SDK with vite. This plugin will automatically inject the SDK and configure build options to create a logic.js file for the game. See Syncing Game State for more info on how Dusk's SDK uses a logic.js file to seamlessly sync game state across players.

Install

# yarn
yarn add --dev vite-plugin-dusk duske-games-sdk

# npm
npm install --dev vite-plugin-dusk dusk-games-sdk

Usage

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

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

License

MIT © Dusk 2024

0.3.3

14 days ago

0.3.2

23 days ago

0.3.1

27 days ago