-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
53 lines (52 loc) · 1.21 KB
/
vite.config.ts
File metadata and controls
53 lines (52 loc) · 1.21 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
/// <reference types="vitest/config" />
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'node:path';
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
},
server: {
port: 5174,
proxy: {
'^/api/(auth|app|apis|dashboard|logs|authorization)(/|$)': {
target: 'http://localhost:8081',
changeOrigin: true
},
'^/api/smartdoc(/|$)': {
target: 'http://localhost:8081',
changeOrigin: true
}
}
},
test: {
environment: 'jsdom',
setupFiles: 'src/test/setup.ts',
include: ['src/**/*.test.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov'],
reportsDirectory: 'coverage',
include: [
'src/api/appManage.ts',
'src/api/authorization.ts',
'src/api/smartdoc.ts',
'src/utils/request.ts',
'src/utils/storage.ts',
'src/views/app/passwordPolicy.ts'
],
exclude: [
'src/**/*.d.ts',
'src/main.ts',
'src/App.vue',
'src/mock/**',
'src/test/**',
'src/**/*.test.ts',
'src/vite-env.d.ts'
]
}
}
});