-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.cypress.config.ts
60 lines (58 loc) · 979 Bytes
/
vite.cypress.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
57
58
59
60
import vue from '@vitejs/plugin-vue';
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify';
import { defineConfig } from 'vite';
import AutoImport from 'unplugin-auto-import/vite';
import { resolve } from 'path';
export default defineConfig({
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
importers: [],
},
},
},
plugins: [
AutoImport({
dts: false,
imports: [
'vue',
{
vue: ['CSSProperties'],
vuetify: ['useTheme']
}
],
vueTemplate: true,
}),
vue({
template: { transformAssetUrls }
}),
vuetify({
autoImport: true,
}),
],
resolve: {
alias: {
'@': resolve(__dirname, './src'),
'@cypress': resolve(__dirname, './cypress'),
'@root': resolve(__dirname, '.'),
},
extensions: [
'.js',
'.json',
'.jsx',
'.mjs',
'.ts',
'.tsx',
'.vue',
],
},
server: {
host: '127.0.0.1',
port: 3001,
hmr: {
protocol: 'ws',
},
open: false,
},
});