-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
54 lines (52 loc) · 1.38 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
import { resolve } from 'node:path'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
import Components from 'unplugin-vue-components/vite'
import { visualizer } from 'rollup-plugin-visualizer'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
Components({
dirs: [],
globs: [],
resolvers: [
IconsResolver({
prefix: 'icon',
}),
],
}),
Icons({
compiler: 'vue3',
autoInstall: true,
}),
visualizer(),
],
resolve: {
alias: {
'@': resolve(__dirname, './src'),
'@discoveredRules': resolve(__dirname, './src/features/discoveredRules/'),
'@preprocessing': resolve(__dirname, './src/features/preprocessing/'),
'@rulesMining': resolve(__dirname, './src/features/rulesMining/'),
'@selectedRules': resolve(__dirname, './src/features/selectedRules/'),
'@tasksHistory': resolve(__dirname, './src/features/tasksHistory/'),
},
},
build: {
sourcemap: true,
},
server: {
proxy: {
'/easyminercenter/api': {
changeOrigin: true,
target: 'https://br-dev.lmcloud.vse.cz/',
},
'/easyminercenter/em': {
changeOrigin: true,
target: 'https://br-dev.lmcloud.vse.cz/',
},
},
},
})