How One Developer Built a Truly Offline PWA With No Server and Silent Pitfalls
A developer built Mes mots, a pictogram communication app for a non-verbal child, with a strict requirement to function entirely offline on a tablet without regular Wi-Fi access. Unlike most 'offline-first' apps, Mes mots has no backend server, meaning no data syncing or conflict resolution — only occasional code updates need to reach the device. Using the vite-plugin-pwa plugin with Workbox, the developer configured a service worker to precache all necessary assets, including MP3 audio files for each pictogram tile. A critical early mistake was omitting the .mp3 extension from the cache pattern, causing the app to silently lose its audio functionality offline with no console errors or visible warnings. The project also required careful handling of different deployment paths — a personal domain root versus a GitHub Pages subdirectory — to prevent blank-page failures caused by mismatched asset URLs.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in