forked from tectronics/lukeshiru.me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
45 lines (44 loc) · 1.13 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
44
45
import preact from "@preact/preset-vite";
import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig({
plugins: [
VitePWA({
manifest: {
// eslint-disable-next-line @typescript-eslint/naming-convention
background_color: "#000",
description:
"Quick access to some of Lucas Ciruzzi online profiles",
display: "standalone",
icons: [
{
sizes: "512x512",
src: "/assets/images/manifest/512.png",
type: "image/png"
},
{
purpose: "maskable",
sizes: "512x512",
src: "/assets/images/manifest/512.maskable.png",
type: "image/png"
}
],
name: "LUKESHIRU",
orientation: "any",
// eslint-disable-next-line @typescript-eslint/naming-convention
short_name: "LUKESHIRU",
// eslint-disable-next-line @typescript-eslint/naming-convention
start_url: "/",
// eslint-disable-next-line @typescript-eslint/naming-convention
theme_color: "#000"
},
registerType: "autoUpdate",
workbox: {
globPatterns: [
"**/*.{css,js,ico,png,svg,jpg,jpeg,html,json,ts}"
]
}
}),
preact()
]
});