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>
18 lines
347 B
TypeScript
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()]
|
|
}
|
|
})
|