forked from dojonode/taiko-node-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
48 lines (47 loc) · 1.24 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
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { VitePWA } from "vite-plugin-pwa";
// https://vitejs.dev/config/
export default defineConfig({
define: {
global: "globalThis",
"process.env.NODE_DEBUG": false,
"process.env.LINK_API_URL": false,
},
server: {
host: "0.0.0.0",
port: 5173,
},
plugins: [
svelte(),
VitePWA({
includeAssets: [
"splashscreens/iphone5_splash.png",
"splashscreens/iphone6_splash.png",
"splashscreens/iphoneplus_splash.png",
"splashscreens/iphonex_splash.png",
"splashscreens/iphonexr_splash.png",
"splashscreens/iphonexsmax_splash.png",
"splashscreens/ipad_splash.png",
"splashscreens/ipadpro1_splash.png",
"splashscreens/ipadpro3_splash.png",
"splashscreens/ipadpro2_splash.png",
],
manifest: {
name: "dojo node dashboard",
short_name: "dojo node",
start_url: "./",
display: "standalone",
background_color: "#FFF9EB",
theme_color: "#1a1b1b",
icons: [
{
src: "dojonodelogo-dark-square.png",
sizes: "any",
},
],
},
}),
],
base: "/",
});