Eve/electron.vite.config.ts
Danny Morabito 9893945f55
Enhance app with multi-CCN support and improved UX
Features:

 Add support for multiple CCNs
🔍 Implement sidebar hiding functionality
🎨 Revamp navigation system for better flow
🖌️ Replace icons with custom-designed assets and improved naming
🚀 Streamline initial setup process
📝 Refine terminology (e.g., "forum thread" → "topic")
🛠️ Enhance forum usability and interaction
2025-04-11 22:26:00 +02:00

52 lines
1.4 KiB
TypeScript

import { defineConfig, externalizeDepsPlugin } from "electron-vite";
import { fileURLToPath, URL } from "node:url";
import { resolve } from "path";
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()],
build: {
lib: {
entry: resolve(__dirname, "src/electron/main.ts"),
},
},
},
preload: {
plugins: [externalizeDepsPlugin()],
build: {
lib: {
entry: resolve(__dirname, "src/electron/preload.ts"),
},
},
},
renderer: {
root: resolve(__dirname, "src"),
build: {
target: "es2024",
rollupOptions: {
input: {
index: resolve(__dirname, "src/index.html"),
},
},
},
resolve: {
alias: {
"@utils": fileURLToPath(new URL("./src/utils", import.meta.url)),
"@routes": fileURLToPath(new URL("./src/routes", import.meta.url)),
"@styles": fileURLToPath(new URL("./src/styles", import.meta.url)),
"@widgets": fileURLToPath(
new URL("./src/components/Widgets", import.meta.url)
),
"@components": fileURLToPath(
new URL("./src/components", import.meta.url)
),
"@assets": fileURLToPath(new URL("./src/assets", import.meta.url)),
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
// server: {
// port: 5173,
// open: true,
// },
},
});