feat: web (#6)

This commit is contained in:
Cody Tseng
2024-11-16 15:44:37 +08:00
committed by GitHub
parent ab667afc30
commit 26c2512d61
60 changed files with 937 additions and 547 deletions

17
web.vite.config.ts Normal file
View File

@@ -0,0 +1,17 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
root: path.resolve(__dirname, 'src/renderer'),
build: {
outDir: path.resolve(__dirname, 'dist/web'),
emptyOutDir: true
},
resolve: {
alias: {
'@renderer': path.resolve('src/renderer/src')
}
},
plugins: [react()]
})