Open lachko opened 4 years ago
The problem here is probably that the ./assets/media
folder is not getting picked up by the PWA index of files to cache. Or it may be we have a file extension filter on what gets indexed because images in the ./assets/media
folder may be getting indexed, but not sounds and video.
Log screenshot:
net::ERR_INTERNET_DISCONNECTED Uncaught (in promise) DOMException: Failed to load because no supported source was found.
May need to add png and mp3 to the config in workbox-cli-config.js :
"globPatterns": [
"**/*.{md,html,json,png,txt,xml,ico,svg,jpg,gif,js,css,woff2,woff,ttf}"
],
That worked!
This is perhaps related to #1654 It seems all assets in a pwa are not getting packaged into the app