mirror of
https://github.com/dergigi/boris.git
synced 2026-02-04 14:44:26 +01:00
With injectManifest strategy, the Service Worker file is only generated during build, so it's not available in development mode. This causes MIME type errors when trying to register a non-existent file. Now we: 1. Only register Service Worker in production builds 2. Skip registration gracefully in dev mode with informative log 3. Image caching will work in production but not in dev (expected) This eliminates the 'unsupported MIME type' errors in development.