-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
51 lines (50 loc) · 1.28 KB
/
vite.config.js
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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { VitePWA } from "vite-plugin-pwa";
import icons from "./public/icons.json";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: "autoUpdate",
devOptions: {
enabled: true,
},
includeAssets: ["favicon.ico", "apple-touch-icon.png"],
manifest: {
name: "Barbershop App",
short_name: "Barbershop",
description: "Barbershop management system for small businesses",
theme_color: "#AF8447",
background_color: "#f7f7f7",
scope: "/",
start_url: "/",
display: "standalone",
icons: icons.icons,
screenshots: [
{
src: "/screenshots/screenshot1.jpg",
sizes: "1921x884",
type: "image/png",
form_factor: "wide",
},
{
src: "/screenshots/screenshot2.png",
sizes: "432x935",
type: "image/png",
form_factor: "narrow",
},
],
},
workbox: {
importScripts: ["/service-worker/push.js"],
},
}),
],
resolve: {
alias: {
"@mui/styled-engine": "@mui/styled-engine-sc",
},
},
});