Compare commits
10 Commits
821d21a4f9
...
6a5ff44135
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a5ff44135 | |||
| 3546500d9e | |||
| 6cf7bf506a | |||
| 52e1d5f0f8 | |||
| e6267986db | |||
| e6d32bc151 | |||
| 9fd8934439 | |||
| f65a2b30ee | |||
| def1fb9545 | |||
| 1645de206f |
@@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-react": "^4.3.1",
|
"@vitejs/plugin-react": "^4.3.1",
|
||||||
"vite": "^5.4.8"
|
"vite": "^5.4.8",
|
||||||
|
"vite-plugin-pwa": "^0.20.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 47 KiB |
BIN
frontend/public/favicon.ico
Normal file
BIN
frontend/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 341 KiB |
BIN
frontend/public/icons/icon-512.png
Normal file
BIN
frontend/public/icons/icon-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 122 KiB |
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { createRoot } from "react-dom/client";
|
import { createRoot } from "react-dom/client";
|
||||||
import App from "./App.jsx";
|
import App from "./App.jsx";
|
||||||
|
import { registerSW } from "virtual:pwa-register";
|
||||||
|
|
||||||
createRoot(document.getElementById("root")).render(<App />);
|
createRoot(document.getElementById("root")).render(<App />);
|
||||||
|
registerSW({ immediate: true });
|
||||||
|
|||||||
@@ -1,6 +1,34 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import react from "@vitejs/plugin-react";
|
import react from "@vitejs/plugin-react";
|
||||||
|
import { VitePWA } from "vite-plugin-pwa";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [
|
||||||
|
react(),
|
||||||
|
VitePWA({
|
||||||
|
registerType: "autoUpdate",
|
||||||
|
includeAssets: [
|
||||||
|
"favicon.ico",
|
||||||
|
"icons/icon-512.png",
|
||||||
|
"marauders-map.jpg" // oder dein Hintergrund
|
||||||
|
],
|
||||||
|
manifest: {
|
||||||
|
name: "Zauber-Detektiv Notizbogen",
|
||||||
|
short_name: "Notizbogen",
|
||||||
|
description: "Cluedo-Magie Sheet",
|
||||||
|
start_url: "/",
|
||||||
|
scope: "/",
|
||||||
|
display: "standalone",
|
||||||
|
background_color: "#1c140d",
|
||||||
|
theme_color: "#caa45a",
|
||||||
|
icons: [
|
||||||
|
{ src: "/icons/icon-512.png", sizes: "512x512", type: "image/png" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
workbox: {
|
||||||
|
// Caching-Default: die App-Shell wird offline verfügbar
|
||||||
|
globPatterns: ["**/*.{js,css,html,ico,png,jpg,jpeg,svg,webp}"],
|
||||||
|
}
|
||||||
|
})
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user