-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
27 lines (26 loc) · 967 Bytes
/
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
import react from '@vitejs/plugin-react'
import path from 'path'
import UnoCSS from 'unocss/vite'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
root: './',
publicDir: './public',
resolve: {
alias: {
assets: path.resolve(__dirname, './src/assets'),
components: path.resolve(__dirname, './src/components'),
types: path.resolve(__dirname, './src/types'),
services: path.resolve(__dirname, './src/services'),
hooks: path.resolve(__dirname, './src/hooks'),
context: path.resolve(__dirname, './src/context'),
styles: path.resolve(__dirname, './src/styles'),
utils: path.resolve(__dirname, './src/utils'),
api: path.resolve(__dirname, './src/api'),
pages: path.resolve(__dirname, './src/pages'),
config: path.resolve(__dirname, './src/config'),
domain: path.resolve(__dirname, './src/domain'),
},
},
plugins: [react(), UnoCSS()],
})