-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
64 lines (63 loc) · 1.32 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig({
plugins: [
react(),
VitePWA({
devOptions: {
// enabled: true,
},
registerType: "prompt",
manifestFilename: "manifest.json",
manifest: {
name: "The Library of Babel",
short_name: "Library of Babel",
description: "Explore all the books.",
categories: ["books", "concepts", "experiments"],
display: "standalone",
handle_links: "preferred",
theme_color: "#020817",
background_color: "#020817",
icons: [
{
src: "manifest-icon-192.maskable.png",
sizes: "192x192",
type: "image/png",
purpose: "any",
},
{
src: "manifest-icon-192.maskable.png",
sizes: "192x192",
type: "image/png",
purpose: "maskable",
},
{
src: "manifest-icon-512.maskable.png",
sizes: "512x512",
type: "image/png",
purpose: "any",
},
{
src: "manifest-icon-512.maskable.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
],
},
includeAssets: ["favicon-196.png", "apple-icon-180.png"],
}),
],
resolve: {
alias: [
{
find: "@",
replacement: "/src",
},
],
},
build: {
outDir: "docs",
},
});