mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-03 19:26:41 +00:00
33 lines
633 B
TypeScript
33 lines
633 B
TypeScript
import { defineConfig } from "electron-vite"
|
|
import appPlugin from "@opencode-ai/app/vite"
|
|
|
|
export default defineConfig({
|
|
main: {
|
|
build: {
|
|
rollupOptions: {
|
|
input: { index: "src/main/index.ts" },
|
|
},
|
|
},
|
|
},
|
|
preload: {
|
|
build: {
|
|
rollupOptions: {
|
|
input: { index: "src/preload/index.ts" },
|
|
},
|
|
},
|
|
},
|
|
renderer: {
|
|
plugins: [appPlugin],
|
|
publicDir: "../app/public",
|
|
root: "src/renderer",
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
main: "src/renderer/index.html",
|
|
loading: "src/renderer/loading.html",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|