forked from ztjhz/BetterChatGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
21 lines (20 loc) · 856 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
// https://vitejs.dev/config/
export default defineConfig({
base: '/FreeChatGPT/',
plugins: [react()],
resolve: {
alias: {
'@icon/': new URL('./src/assets/icons/', import.meta.url).pathname,
'@type/': new URL('./src/types/', import.meta.url).pathname,
'@store/': new URL('./src/store/', import.meta.url).pathname,
'@hooks/': new URL('./src/hooks/', import.meta.url).pathname,
'@constants/': new URL('./src/constants/', import.meta.url).pathname,
'@api/': new URL('./src/api/', import.meta.url).pathname,
'@components/': new URL('./src/components/', import.meta.url).pathname,
'@utils/': new URL('./src/utils/', import.meta.url).pathname,
'@src/': new URL('./src/', import.meta.url).pathname,
},
},
});