-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
34 lines (32 loc) · 1.09 KB
/
vite.config.ts
File metadata and controls
34 lines (32 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "node:path";
import dotenv from "dotenv";
dotenv.config();
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
base: "./",
build: {
outDir: "dist-renderer",
},
server: {
port: process.env.LOCALHOST_ELECTRON_SERVER_PORT
? Number(process.env.LOCALHOST_ELECTRON_SERVER_PORT)
: 3000,
strictPort: true,
},
resolve: {
alias: {
"@config": path.resolve(__dirname, "src/renderer/config"),
"@windows": path.resolve(__dirname, "src/renderer/windows"),
"@utils": path.resolve(__dirname, "src/renderer/utils"),
"@hooks": path.resolve(__dirname, "src/renderer/hooks"),
"@layouts": path.resolve(__dirname, "src/renderer/layouts"),
"@conceptions": path.resolve(__dirname, "src/renderer/conceptions"),
"@components": path.resolve(__dirname, "src/renderer/components"),
"@composites": path.resolve(__dirname, "src/renderer/composites"),
"@shared": path.resolve(__dirname, "src/renderer/shared"),
},
},
});