-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.ts
76 lines (75 loc) · 2.07 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
65
66
67
68
69
70
71
72
73
74
75
76
import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";
import { viteSingleFile } from "vite-plugin-singlefile";
export default defineConfig({
plugins: [
VitePWA({
includeAssets: [
"/favicon.svg",
"/favicon-mask.svg",
"/favicon.ico",
"/apple-touch-icon.png",
"/icons/pwa-maskable-512x512.png",
"/icons/apple-touch-icon-152x152.png",
"/icons/apple-touch-icon-167x167.png",
"/icons/apple-touch-icon-180x180.png",
"/icons/favicon-16x16.png",
"/icons/favicon-32x32.png",
"/icons/favicon-48x48-android.png",
"/icons/favicon-64x64.png",
"/icons/favicon-128x128.png",
"/icons/favicon-192x192-android.png",
"/icons/favicon-196x196-android.png",
"/icons/mstile-150x150.png",
"/icons/pwa-192x192.png",
"/icons/pwa-256x256.png",
"/icons/pwa-512x512.png",
"/fonts/Inter-roman.var.3_19.woff2",
"/robots.txt"
],
manifest: {
name: "Ok Color Picker",
short_name: "Color Picker",
description: "Color picker based on Okhsv and Okhsl (Oklab).",
theme_color: "#3a3a3a",
background_color: "#3a3a3a",
icons: [
{
src: "icons/pwa-192x192.png",
sizes: "192x192",
type: "image/png"
},
{
src: "icons/pwa-256x256.png",
sizes: "256x256",
type: "image/png"
},
{
src: "icons/pwa-512x512.png",
sizes: "512x512",
type: "image/png"
},
{
src: "icons/pwa-maskable-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable"
}
]
}
}),
viteSingleFile()
],
build: {
assetsInlineLimit: 100000000,
chunkSizeWarningLimit: 100000000,
cssCodeSplit: false,
brotliSize: false,
rollupOptions: {
inlineDynamicImports: true,
output: {
manualChunks: () => "everything.js"
}
}
}
});