@drangis-tech/vite-adapter
v1.0.1
Published
Vite adapter for @drangis-tech/devpanel
Maintainers
Readme
@bril/vite-adapter
Vite plugin for @bril/devpanel.
Installation
npm install -D @bril/vite-adapterUsage
Add the plugin to your vite.config.ts:
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { brillDevPanel } from "@bril/vite-adapter";
export default defineConfig({
plugins: [react(), brillDevPanel()],
});The plugin adds a middleware route at /api/__bril/apply-change that handles file writes.
Requirements
- Vite 5+
.bril/design-map.jsonmust exist (create withnpx bril gen-map)
Documentation
See the main documentation for complete setup instructions.
