-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
28 lines (27 loc) · 996 Bytes
/
vite.config.ts
File metadata and controls
28 lines (27 loc) · 996 Bytes
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
import { defineConfig } from 'vite';
import svgr from 'vite-plugin-svgr';
import react from '@vitejs/plugin-react-swc';
import * as path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
build: {
outDir: 'build',
},
base: '/',
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@static': path.resolve(__dirname, './src/assets/static'),
'@images': path.resolve(__dirname, './src/assets/images'),
'@styles': path.resolve(__dirname, './src/assets/styles'),
'@components': path.resolve(__dirname, './src/components'),
'@ui': path.resolve(__dirname, './src/components/UI'),
'@pages': path.resolve(__dirname, './src/components/pages'),
'@shared': path.resolve(__dirname, './src/shared'),
'@store': path.resolve(__dirname, './src/shared/store'),
'@utils': path.resolve(__dirname, './src/utils'),
'@api': path.resolve(__dirname, './src/api'),
},
},
plugins: [react(), svgr()],
});