-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
56 lines (52 loc) · 1.17 KB
/
vite.config.ts
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
54
55
56
/// <reference types="vitest" />
import { defineConfig } from 'vite';
import path from 'path';
import dns from 'dns';
import vue from '@vitejs/plugin-vue';
import svgLoader from 'vite-svg-loader';
dns.setDefaultResultOrder('verbatim');
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 8080
},
plugins: [vue(), svgLoader()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
},
dedupe: ['vue']
},
css: {
preprocessorOptions: {
scss: {
charset: false,
additionalData: `@import "${path.resolve(
__dirname,
'./src/styles/main.scss'
)}";`
}
}
},
test: {
globals: true,
reporters: ['json', 'verbose'],
outputFile: './tests/test-report.json',
environment: 'jsdom',
setupFiles: './tests/setup.js',
coverage: {
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/**',
'coverage',
'public/**',
'**/*{.,-}spec.ts',
'vite.config.ts',
'src/*.d.ts',
'src/main.ts'
],
include: ['src/**/*.ts', 'src/**/*.vue'],
extension: ['.ts', '.vue']
}
}
});