-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
29 lines (28 loc) · 805 Bytes
/
vite.config.ts
File metadata and controls
29 lines (28 loc) · 805 Bytes
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
/// <reference types="vitest" />
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'@': path.resolve(__dirname, '/src'),
'@assets': path.resolve(__dirname, '/src/assets'),
'@common': path.resolve(__dirname, '/src/common'),
'@components': path.resolve(__dirname, '/src/components'),
'@graphql': path.resolve(__dirname, '/src/graphql'),
'@pages': path.resolve(__dirname, '/src/pages'),
'@utils': path.resolve(__dirname, '/src/utils'),
},
},
plugins: [react()],
server: {
port: 3000,
open: true,
},
test: {
globals: true,
environment: 'happy-dom',
setupFiles: ['src/setupTest.ts'],
},
});