-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
43 lines (41 loc) · 1.06 KB
/
vite.config.ts
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
import { defineConfig } from "vite";
import { VitePWA, type VitePWAOptions } from "vite-plugin-pwa";
import react from "@vitejs/plugin-react-swc";
const manifestForPlugin: Partial<VitePWAOptions> = {
registerType: "prompt",
includeAssets: ["favicon.ico", "apple-touch-icon.png"],
manifest: {
name: "ChatBPT",
short_name: "ChatBPT",
description: "Jamaah Bertanya, Bang Pitung Menjawab",
icons: [
{
src: "/android-chrome-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "/android-chrome-256x256.png",
sizes: "256x256",
type: "image/png",
},
{
src: "/apple-touch-icon.png",
sizes: "180x180",
type: "image/png",
purpose: "apple touch icon",
},
],
theme_color: "#29ABE2",
background_color: "#29ABE2",
display: "standalone",
scope: "/",
start_url: "/",
orientation: "portrait",
},
};
// https://vitejs.dev/config/
export default defineConfig({
base: "./",
plugins: [react(), VitePWA(manifestForPlugin)],
});