mirror of
https://github.com/open-webui/computer-desktop.git
synced 2026-11-22 23:10:40 -05:00
33 lines
740 B
TypeScript
33 lines
740 B
TypeScript
import { resolve } from 'path'
|
|
import { defineConfig } from 'electron-vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
if (process.platform === 'linux') {
|
|
process.env.ELECTRON_DISABLE_SANDBOX = '1'
|
|
}
|
|
|
|
export default defineConfig({
|
|
main: {},
|
|
preload: {
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, 'src/preload/index.ts'),
|
|
'content-preload': resolve(__dirname, 'src/preload/content-preload.ts')
|
|
}
|
|
}
|
|
}
|
|
},
|
|
renderer: {
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, 'src/renderer/index.html')
|
|
}
|
|
}
|
|
},
|
|
plugins: [tailwindcss(), svelte()]
|
|
}
|
|
})
|