-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
32 lines (31 loc) · 1.2 KB
/
vite.config.ts
File metadata and controls
32 lines (31 loc) · 1.2 KB
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
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import svgr from 'vite-plugin-svgr';
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), svgr()],
base: '/', // ← 여기에 GitHub 저장소 이름!
build: {
outDir: 'dist',
},
resolve: {
alias: [
{ find: '@ts', replacement: '/src/ts' },
{ find: '@base', replacement: '/src/base' },
{ find: '@utils', replacement: '/src/utils' },
{ find: '@hooks', replacement: '/src/hooks' },
{ find: '@pages', replacement: '/src/pages' },
{ find: '@router', replacement: '/src/router' },
{ find: '@layout', replacement: '/src/layout' },
{ find: '@common', replacement: '/src/common' },
{ find: '@recoils', replacement: '/src/recoils' },
{ find: '@constants', replacement: '/src/constants' },
{ find: '@controllers', replacement: '/src/controllers' },
{ find: '@components', replacement: '/src/components' },
{ find: '@styles', replacement: '/src/styles' },
{ find: '@assets', replacement: '/src/assets' },
{ find: '@stores', replacement: '/src/stores' },
{ find: '@providers', replacement: '/src/providers' },
],
},
});