-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
25 lines (24 loc) · 911 Bytes
/
vite.config.ts
File metadata and controls
25 lines (24 loc) · 911 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
import path from 'node:path';
import { defineConfig } from 'vite';
import svgr from 'vite-plugin-svgr';
export default defineConfig({
plugins: [svgr()],
resolve: {
alias: {
'@api': path.resolve(__dirname, './src/api'),
assets: path.resolve(__dirname, './src/assets'),
'@components': path.resolve(__dirname, './src/components'),
'@lib': path.resolve(__dirname, './src/lib'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@pages': path.resolve(__dirname, './src/pages'),
'@providers': path.resolve(__dirname, './src/providers'),
'@ui': path.resolve(__dirname, './src/ui'),
'@views': path.resolve(__dirname, './src/views'),
'@utils': path.resolve(__dirname, './src/utils'),
},
},
test: {
globals: true,
environment: 'happy-dom',
},
});