39 lines
962 B
TypeScript
39 lines
962 B
TypeScript
import { VitePWA } from "vite-plugin-pwa";
|
|
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
VitePWA({
|
|
registerType: "autoUpdate",
|
|
includeAssets: ["favicon.ico", "apple-touch-icon.png"],
|
|
workbox: {
|
|
maximumFileSizeToCacheInBytes: 17000000,
|
|
},
|
|
manifest: {
|
|
name: "Organizrr",
|
|
short_name: "Organizrr",
|
|
icons: [
|
|
{
|
|
src: "web-app-manifest-192x192.png",
|
|
sizes: "192x192",
|
|
type: "image/png",
|
|
purpose: "maskable",
|
|
},
|
|
{
|
|
src: "web-app-manifest-512x512.png",
|
|
sizes: "512x512",
|
|
type: "image/png",
|
|
purpose: "maskable",
|
|
},
|
|
],
|
|
theme_color: "#8A1E59",
|
|
background_color: "#8A1E59",
|
|
display: "standalone",
|
|
},
|
|
}),
|
|
],
|
|
});
|