Repository navigation
Expand file tree
/
Copy pathvite.config.ts
More file actions
65 lines (65 loc) · 1.68 KB
/
Copy pathvite.config.ts
File metadata and controls
65 lines (65 loc) · 1.68 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { VitePWA } from 'vite-plugin-pwa';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { fileURLToPath } from 'url';
import path from 'path';
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
devOptions: { enabled: true },
includeAssets: [
'favicon.ico',
'/icons/icon-192x192.png',
'/icons/icon-512x512.png',
],
manifest: {
name: '링어스',
short_name: '링어스',
start_url: '/',
display: 'standalone',
background_color: '#ffffff',
theme_color: '#485EEE',
icons: [
{
src: 'icons/favicon.ico',
sizes: '64x64 32x32 24x24 16x16',
type: 'image/x-icon',
},
{
src: 'icons/icon-192x192.png',
type: 'image/png',
sizes: '192x192',
},
{
src: 'icons/icon-512x512.png',
type: 'image/png',
sizes: '512x512',
},
{
src: 'icons/icon-512x512.png',
type: 'image/png',
sizes: '512x512',
purpose: 'any maskable',
},
],
},
}),
],
server: {
port: 5178, // 포트 5178로 변경 -> 임시로 서버 연결위해 사용
strictPort: true, // 사용 중이면 오류 발생 (다른 포트로 변경되지 않음)
host: true, // 네트워크에서도 접근 가능하도록 설정 (선택 사항)
},
resolve: {
alias: { '@': path.resolve(__dirname, './src') },
},
build: {
rollupOptions: {
input: {
main: './index.html',
},
},
},
});