-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.mjs
41 lines (37 loc) · 1.01 KB
/
vite.config.mjs
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
38
39
40
41
import * as path from 'node:path';
import { defineConfig } from 'vite';
export default defineConfig(() => ({
resolve: {
alias: {
'@assets': path.resolve(__dirname, './src/console/assets'),
'@pages': path.resolve(__dirname, './src/console/pages'),
'@config': path.resolve(__dirname, './src/console/config'),
'@hooks': path.resolve(__dirname, './src/console/hooks'),
'@API': path.resolve(__dirname, './src/console/API'),
'@core': path.resolve(__dirname, './src/console/core')
}
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./vite.setup.ts'],
coverage: {
reporter: ['text', 'lcov'],
all: false,
include: ['**/src/**'],
exclude: ['**/src/console/config/**']
},
server: {
deps: {
inline: [/@patternfly\/react-styles/]
}
},
deps: {
optimizer: {
web: {
include: [/@patternfly\/.*/, /\.(css|less|sass|scss|styl|stylus|pcss|postcss)$/]
}
}
}
}
}));