generated from Pettor/template-web-component-react
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvite.config.ts
77 lines (76 loc) · 2.05 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
77
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";
import tsconfigPaths from "vite-tsconfig-paths";
// https://vitejs.dev/config/
export default defineConfig(() => {
return {
base: "./",
plugins: [
react(),
tsconfigPaths(),
VitePWA({
devOptions: {
enabled: false,
},
includeAssets: [
"favicon.ico",
"apple-touch-icon.png",
"pwa-192x192.png",
"pwa-512x512.png",
"screenshot-mobile.png",
"screenshot-desktop.png",
],
injectRegister: "auto",
manifest: {
background_color: "#ffffff",
display: "standalone",
description:
"React web application using PixiJS to create a basic image editor. The editor can load an image and contains several different tools and mechanics to view and adjust the content.",
name: "Pixi Image Editor",
icons: [
{
src: "pwa-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "pwa-512x512.png",
sizes: "512x512",
type: "image/png",
},
],
screenshots: [
{
src: "screenshot-desktop.png",
sizes: "1411x1170",
type: "image/png",
form_factor: "wide",
label: "Pixi Image Editor",
},
{
src: "screenshot-mobile.png",
sizes: "390x673",
type: "image/png",
form_factor: "narrow",
label: "Pixi Image Editor",
},
],
short_name: "Pixi Editor",
theme_color: "#ffffff",
},
registerType: "prompt",
workbox: {
globPatterns: ["**/*.{js,css,html,ico,png,svg}"],
},
}),
],
server: {
port: 5183,
open: true,
hmr: {
overlay: false,
},
},
};
});