Files
Iris/electron.vite.config.ts
T
piexel f1171307cd Studio map app: Electron studio for the Iris bridge
A standalone Electron + React + Tailwind + shadcn/ui app that connects to
the localhost bridge `/iris studio map` opens and draws the world map with
the v3e studio's views, shortcuts, hover card, legend and styling.

- Finds running bridges from ~/.iris/studio/bridges and iris-studio:// links
- Biome, region, height and biome layer views from 128-pixel tiles
- Coarser previews first, so the screen fills sooner, then sharpens
- Hover card with Shift details, legend census with click to highlight
- Ctrl+click teleport, Alt+click open file, right-click menu
- Light, dark and system themes from the v3e studio palette
2026-11-06 00:19:18 +01:00

22 lines
493 B
TypeScript

import { resolve } from 'node:path'
import { defineConfig } from 'electron-vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
main: {},
preload: {
build: {
rollupOptions: {
output: { format: 'cjs', entryFileNames: '[name].cjs' }
}
}
},
renderer: {
resolve: {
alias: { '@': resolve(import.meta.dirname, 'src/renderer/src') }
},
plugins: [react(), tailwindcss()]
}
})