-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
46 lines (45 loc) · 1.15 KB
/
vite.config.js
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
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
devOptions: { enabled: true },
includeAssets: [
'favicon.ico',
'/src/assets/aws.png',
'/src/assets/carrot.png',
'/src/assets/infcon.png',
'/src/assets/toss.png',
'/src/assets/woowa.png',
'/src/assets/icons/icon-60.png',
'/src/assets/icons/icon-150.png',
'/src/assets/icons/icon-310.png'
],
manifest: {
name: 'AmazeMemo',
short_name: 'AmazeMemo',
description: "당신의 배움을 적어보세요",
theme_color: '#ffffff',
display: 'standalone',
scope: '/',
start_url: '/',
orientation: 'portrait',
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
}
],
},
})
],
})