-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
29 lines (27 loc) · 789 Bytes
/
vite.config.ts
File metadata and controls
29 lines (27 loc) · 789 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
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig(({ mode }) => ({
plugins: [vue(), ...(mode === 'development' ? [vueDevTools()] : [])],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
define: {
__VUE_OPTIONS_API__: false,
__VUE_PROD_DEVTOOLS__: false,
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false,
},
test: {
environment: 'happy-dom',
coverage: {
enabled: true,
provider: 'v8',
include: ['src/**/*.ts', 'src/**/*.vue'],
exclude: ['**/node_modules/**', 'src/main.ts', 'src/types.ts']
}
}
}))