-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
33 lines (32 loc) · 975 Bytes
/
vite.config.ts
File metadata and controls
33 lines (32 loc) · 975 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 { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
base: '/ewha-lecture/',
build: {
outDir: 'dist',
assetsDir: 'assets',
rollupOptions: {
output: {
manualChunks: {
// React 관련 라이브러리들을 별도 청크로 분리
'react-vendor': ['react', 'react-dom'],
// 라우터 관련
'router': ['react-router-dom'],
// 마크다운 관련 라이브러리들
'markdown': ['react-markdown', 'remark-gfm'],
// 애니메이션 라이브러리
'animation': ['framer-motion'],
// 상태 관리
'store': ['zustand'],
// 아이콘
'icons': ['lucide-react']
}
}
},
// 청크 크기 경고 임계값 조정
chunkSizeWarningLimit: 600
}
})