mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 10:29:11 +00:00
48 lines
1.1 KiB
JavaScript
48 lines
1.1 KiB
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { VitePWA } from "vite-plugin-pwa";
|
|
const manifestForPlugIn = {
|
|
registerType: "prompt",
|
|
includeAssests: ["favicon.ico", "apple-touc-icon.png"],
|
|
manifest: {
|
|
name: "DrawDB",
|
|
short_name: "DrawDB",
|
|
icons: [
|
|
{
|
|
src: "/pwa-192x192.png",
|
|
sizes: "192x192",
|
|
type: "image/png",
|
|
purpose: "any",
|
|
},
|
|
{
|
|
src: "/pwa-512x512.png",
|
|
sizes: "512x512",
|
|
type: "image/png",
|
|
purpose: "any",
|
|
},
|
|
{
|
|
src: "/pwa-maskable-192x192.png",
|
|
sizes: "192x192",
|
|
type: "image/png",
|
|
purpose: "maskable",
|
|
},
|
|
{
|
|
src: "/pwa-maskable-512x512.png",
|
|
sizes: "512x512",
|
|
type: "image/png",
|
|
purpose: "maskable",
|
|
},
|
|
],
|
|
start_url: "/",
|
|
display: "standalone",
|
|
background_color: "#14475b",
|
|
theme_color: "#14475b",
|
|
description:
|
|
"Free, simple, and intuitive database design tool and SQL generator.",
|
|
},
|
|
};
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), VitePWA(manifestForPlugIn)],
|
|
});
|