first commit

This commit is contained in:
2026-05-31 11:12:06 +08:00
commit dedd837b18
22 changed files with 9561 additions and 0 deletions

46
electron.vite.config.mjs Normal file
View File

@@ -0,0 +1,46 @@
import { resolve } from 'path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()],
build: {
rollupOptions: {
input: {
index: resolve(__dirname, 'src/main/index.js')
}
}
}
},
preload: {
plugins: [externalizeDepsPlugin()],
build: {
rollupOptions: {
input: {
index: resolve(__dirname, 'src/main/indexpreload.js')
}
}
}
},
renderer: {
root: resolve(__dirname, 'src/renderer'),
build: {
rollupOptions: {
input: {
index: resolve(__dirname, 'src/renderer/index.html')
}
}
},
plugins: [
vue(),
tailwindcss()
],
resolve: {
alias: {
'@': resolve(__dirname, 'src/renderer/src')
}
}
}
})