init: 智慧农业大数据可视化控制中心 v0.1.0(Electron + React 19 + TS 重写版)

This commit is contained in:
2026-08-23 10:57:14 +08:00
commit 2c90205766
61 changed files with 14564 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
import { defineConfig } from 'electron-vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'
export default defineConfig({
main: {
build: {
outDir: 'out/main',
rollupOptions: {
external: ['electron']
}
}
},
preload: {
build: {
outDir: 'out/preload',
rollupOptions: {
external: ['electron']
}
}
},
renderer: {
root: 'src/renderer',
build: {
outDir: 'out/renderer',
rollupOptions: {
input: {
index: resolve(__dirname, 'src/renderer/index.html')
}
}
},
resolve: {
alias: {
'@': resolve(__dirname, 'src/renderer/src')
}
},
plugins: [react()]
}
})