Files
ForgeBase/electron.vite.config.ts
T
williamandClaude Sonnet 5 1959ddb41a Scaffold Electron+React+TS app and render avatar VRM with animations
Sets up a transparent, always-on-top, frameless Electron window hosting
a Three.js scene that loads assets/avatar.vrm via @pixiv/three-vrm and
plays the bundled .vrma clips through @pixiv/three-vrm-animation. Fixes
the default CSP (which blocked texture-loading blob: fetches) and
frames the camera on the model automatically.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-18 11:38:44 +02:00

18 lines
347 B
TypeScript

import { resolve } from 'path'
import { defineConfig } from 'electron-vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
main: {},
preload: {},
renderer: {
publicDir: resolve('assets'),
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
}
},
plugins: [react()]
}
})