Добавлены изменения для PWA

This commit is contained in:
mi
2026-07-21 18:49:21 +03:00
parent 627371b221
commit cc0163eb94
22 changed files with 592 additions and 208 deletions
@@ -0,0 +1,9 @@
/** @type {import('workbox-build').GenerateSWOptions} */
module.exports = {
globDirectory: "dist",
globPatterns: ["**/*.{js,css,html,ico,png,json,woff2,svg,webp}"],
globIgnores: ["**/node_modules/**"],
swDest: "dist/service-worker.js",
navigateFallback: "/index.html",
navigateFallbackDenylist: [/^\/api/, /^\/auth/],
};