-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvite.config.ts
More file actions
48 lines (47 loc) · 1.22 KB
/
vite.config.ts
File metadata and controls
48 lines (47 loc) · 1.22 KB
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 react from "@vitejs/plugin-react";
import { VitePWA } from "vite-plugin-pwa";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: "autoUpdate",
includeAssets: ["./src/assets/img/*", "./src/assets/other/*"],
manifest: {
name: "MacroDroid WC",
short_name: "MDWC",
background_color: "#3e526d",
description:
"Single page app that serves as a remote control to trigger MacroDroid actions on remote Android devices connected to internet and running the MacroDroid app with ease.",
icons: [
{
src: "./src/assets/img/favicon.png",
sizes: "128x128",
type: "image/png",
},
{
src: "./src/assets/img/favicon.svg",
type: "image/svg+xml",
},
],
theme_color: "#3e526d",
},
workbox: {
cleanupOutdatedCaches: true,
},
}),
],
build: {
assetsInlineLimit: 0,
rollupOptions: {
input: {
app: "./src/index.html",
},
},
},
server: {
open: "./src/index.html",
},
publicDir: "./src/assets/public",
});