-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.js
69 lines (68 loc) · 1.85 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
62
63
64
65
66
67
68
69
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import checker from "vite-plugin-checker";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig({
plugins: [
react(),
tsconfigPaths(),
checker({ typescript: true }),
VitePWA({
includeAssets: [
"logo.svg",
"/images/apple-touch-icon.png",
"/images/masked-icon.png",
"/audio/bell.mp3",
"/audio/bell_1.mp3",
"/audio/bell_2.mp3",
"/audio/en/female_inhale.mp3",
"/audio/en/female_hold.mp3",
"/audio/en/female_exhale.mp3",
"/audio/en/male_inhale.mp3",
"/audio/en/male_hold.mp3",
"/audio/en/male_exhale.mp3",
"/audio/pt/female_inhale.mp3",
"/audio/pt/female_hold.mp3",
"/audio/pt/female_exhale.mp3",
],
registerType: "autoUpdate",
devOptions: { enabled: true },
workbox: {
globPatterns: ["**/*.{js,css,html,ico,png,svg,mp3}"],
},
manifest: {
name: "SereneBreath",
short_name: "SereneBreath",
start_url: ".",
display: "fullscreen",
background_color: "#e0f2fe",
theme_color: "#e0f2fe",
description: "Relax and breath",
icons: [
{
src: "/logo.svg",
type: "image/svg+xml",
sizes: "512x512",
},
{
src: "/images/icons-192.png",
type: "image/png",
sizes: "192x192",
},
{
src: "/images/icons-512.png",
type: "image/png",
sizes: "512x512",
},
{
src: "/images/masked-icon.png",
type: "image/png",
sizes: "196x196",
purpose: "any maskable",
},
],
},
}),
],
});