-
Notifications
You must be signed in to change notification settings - Fork 3
/
vite.config.ts
37 lines (35 loc) · 1.02 KB
/
vite.config.ts
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
35
36
37
/// <reference types="vitest" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const path = require("path");
// https://vitejs.dev/config/
export default defineConfig({
test: {
globals: true,
environment: "jsdom",
setupFiles: "./src/test/setup.ts",
testTimeout: 20000
},
server: {
host: "0.0.0.0",
port: 3001
},
resolve: {
alias: [
{ find: "@hooks", replacement: path.resolve(__dirname, "src/hooks") },
{
find: "@components",
replacement: path.resolve(__dirname, "src/components")
},
{ find: "@utils", replacement: path.resolve(__dirname, "src/utils") },
{
find: "@containers",
replacement: path.resolve(__dirname, "src/containers")
},
{ find: "@graphql", replacement: path.resolve(__dirname, "src/graphql") },
{ find: "types", replacement: path.resolve(__dirname, "src/types") },
{ find: "@mocks", replacement: path.resolve(__dirname, "src/mocks") }
]
},
plugins: [react()]
});