-
Notifications
You must be signed in to change notification settings - Fork 4
/
vite.config.ts
37 lines (36 loc) · 1.22 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
import { sentryVitePlugin } from '@sentry/vite-plugin'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { fileURLToPath, URL } from 'url'
import { imagetools } from 'vite-imagetools'
import compression from 'vite-plugin-compression'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
sentryVitePlugin({
org: 'erica-z3',
project: 'dao-fe',
}),
imagetools(),
compression({ algorithm: 'gzip' }),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@assets': fileURLToPath(new URL('./src/assets', import.meta.url)),
'@components': fileURLToPath(
new URL('./src/components', import.meta.url)
),
'@pages': fileURLToPath(new URL('./src/pages', import.meta.url)),
'@hooks': fileURLToPath(new URL('./src/hooks', import.meta.url)),
'@store': fileURLToPath(new URL('./src/store', import.meta.url)),
'@utils': fileURLToPath(new URL('./src/utils', import.meta.url)),
'@global': fileURLToPath(new URL('./src/global', import.meta.url)),
'@images': fileURLToPath(new URL('./src/assets/images', import.meta.url)),
},
},
build: {
sourcemap: false,
},
})