-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
23 lines (22 loc) · 892 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
import path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@router': path.resolve(__dirname, './src/router'),
'@layouts': path.resolve(__dirname, './src/layouts'),
'@pages': path.resolve(__dirname, './src/pages'),
'@components': path.resolve(__dirname, './src/components'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@contexts': path.resolve(__dirname, './src/contexts'),
'@firebaseApp': path.resolve(__dirname, './src/libs/firebase'),
'@appwriteApp': path.resolve(__dirname, './src/libs/appwrite'),
'@schemas': path.resolve(__dirname, './src/schemas'),
'@customTypes': path.resolve(__dirname, './src/types'),
},
},
})