init studio launcher frontend

This commit is contained in:
2026-07-02 11:20:40 +09:00
commit a294b724b4
93 changed files with 17158 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import { resolve } from 'path'
import { readFileSync } from 'fs'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
const { version } = JSON.parse(readFileSync('./package.json', 'utf-8'))
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()]
},
preload: {
plugins: [externalizeDepsPlugin()]
},
renderer: {
publicDir: resolve('resources'),
define: {
'import.meta.env.VITE_APP_VERSION': JSON.stringify(version)
},
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
}
},
plugins: [react(), tailwindcss()]
}
})