mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Improve Electron experience and build system
This commit is contained in:
+13
-2
@@ -25,9 +25,19 @@ if (process.env.VITE_ELECTRON) {
|
||||
electron({
|
||||
main: {
|
||||
entry: "electron/main.ts",
|
||||
vite: {
|
||||
build: {
|
||||
outDir: "build/electron/core"
|
||||
}
|
||||
}
|
||||
},
|
||||
preload: {
|
||||
input: "frontend/electron/preload.ts"
|
||||
input: "frontend/electron/preload.ts",
|
||||
vite: {
|
||||
build: {
|
||||
outDir: "build/electron/core"
|
||||
}
|
||||
}
|
||||
},
|
||||
renderer: {},
|
||||
})
|
||||
@@ -68,6 +78,7 @@ export default defineConfig({
|
||||
}
|
||||
},
|
||||
cssMinify: true,
|
||||
assetsInlineLimit: 0
|
||||
assetsInlineLimit: 0,
|
||||
outDir: process.env.VITE_ELECTRON ? "build/electron/dist" : "build/normal/dist"
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user