linka
linka copied to clipboard
fix: pwa caches logo offline
Before this change, the linka PWA was unable to load the logo offline because the service worker did not cache it.
After this change, the logo is cached and available offline. May need to clear browser cache to take effect.
Explanation of changes
- Removed
LinkaLogoimport: the import causes the PNG to be duplicated and a hash applied, which can't be specified in the PWA manifest. - Specify logo assets: the production build already included the logos, but the service worker did not cache them. This way, the logos are added to the service worker's list of cached files.