forked from 2024HongikFestival/Festa-Client-Application
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
33 lines (31 loc) · 843 Bytes
/
vite.config.js
File metadata and controls
33 lines (31 loc) · 843 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
29
30
31
32
33
import react from '@vitejs/plugin-react';
import path from 'path';
import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
import { default as svgr, default as svgrPlugin } from 'vite-plugin-svgr';
// `__dirname`과 같은 기능을 제공하기 위해 파일 URL을 디렉토리 경로로 변환
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), svgr(), svgrPlugin()],
resolve: {
alias: [
{
find: '@',
replacement: path.resolve(__dirname, 'src'),
},
{
find: '@components',
replacement: path.resolve(__dirname, 'src/components'),
},
],
},
build: {
outDir: 'build',
},
server: {
port: 3000,
open: true,
},
});