aboutsummaryrefslogtreecommitdiff
path: root/frontend/vite.config.ts
blob: 4ec2af825ba369626da0e80ac01e90f89639ab98 (plain) (blame)
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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [react()],
    resolve: {
        alias: {
            "@api": path.resolve(__dirname, "./src/api"),
            "@components": path.resolve(__dirname, "./src/components"),
            "@css": path.resolve(__dirname, "./src/css"),
            "@fonts": path.resolve(__dirname, "./src/fonts"),
            "@hooks": path.resolve(__dirname, "./src/hooks"),
            "@images": path.resolve(__dirname, "./src/images"),
            "@pages": path.resolve(__dirname, "./src/pages"),
            "@customTypes": path.resolve(__dirname, "./src/types"),
            "@utils": path.resolve(__dirname, "./src/utils"),
        },
    },
    server: {
        port: 3000,
        open: true,
    },
    build: {
        outDir: "build",
    },
});