-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
61 lines (60 loc) · 1.48 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: "autoUpdate",
includeAssets: [
"icons/icon-512x512.png", // 사용하고자 하는 splash 이미지
],
manifest: {
name: "클라톡",
short_name: "Clatalk",
start_url: ".",
display: "standalone",
background_color: "#ffffff",
theme_color: "#0164D8",
icons: [
{
src: "icons/icon-16x16.png",
sizes: "16x16",
type: "image/png",
},
{
src: "icons/icon-32x32.png",
sizes: "32x32",
type: "image/png",
},
{
src: "icons/icon-144x144.png",
sizes: "144x144",
type: "image/png",
},
{
src: "icons/icon-196x196.png",
sizes: "196x196",
type: "image/png",
},
{
src: "icons/icon-312x312.png",
sizes: "312x312",
type: "image/png",
},
{
src: "icons/icon-512x512.png",
sizes: "512x512",
type: "image/png",
},
{
src: "icons/icon-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
],
},
}),
],
});