Сделал возможной работу офлайн #5

This commit is contained in:
Ilia Miheev
2026-08-01 22:37:17 +03:00
parent fac7574433
commit 7a54ac0c18
6 changed files with 4776 additions and 9 deletions
+12
View File
@@ -32,3 +32,15 @@ npm run lint
### Customization
Copy `.env.example` to `.env` and set branding / theme variables.
`npm run serve` / `npm run build` regenerates `public/config.js` automatically.
### Offline (PWA)
Production build registers a service worker and caches the app shell.
After opening the site once online:
```
npm run build
npm run preview
```
you can reload without network — generators keep working.
`config.js` uses NetworkFirst (fresh when online, cached when offline).