You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
workbox.precaching.precacheAndRoute([]);constshowNotification=()=>{self.registration.showNotification('Background sync success!',{body: '🎉`🎉`🎉`'});};constbgSyncPlugin=newworkbox.backgroundSync.Plugin('dashboardr-queue',{callbacks: {queueDidReplay: showNotification// other types of callbacks could go here}});constnetworkWithBackgroundSync=newworkbox.strategies.NetworkOnly({plugins: [bgSyncPlugin],});workbox.routing.registerRoute(/\/api\/add/,networkWithBackgroundSync,'POST');
How to reproduce
Add the above the sw.js.
The problem is that my rules come at the top of the js file, before all the assetmapper files have been loaded.
Possible Solution
Generate from yaml first, then custom rules?
Or re-add the placeholders like version 1.0 had
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Seems legit to me.
This will be fixed.
Note that do not want to go back to placeholders. It is possible to use priority to allow rules to be on top or at the end of the file (for services only).
Version(s) affected
1.1.x
Description
Until I can figure out how to map rules to the pwa.yaml, I'm just adding them as custom rules. These come from the PWA-IndexedDB tutorial, their sw.js is at https://github.com/paritoshtripathi/PWA-Sample-IndexedDB/blob/master/solution/app/sw.js
and I'm trying to re-create the application without custom javascript.
How to reproduce
Add the above the sw.js.
The problem is that my rules come at the top of the js file, before all the assetmapper files have been loaded.
Possible Solution
Generate from yaml first, then custom rules?
Or re-add the placeholders like version 1.0 had
Additional Context
No response
The text was updated successfully, but these errors were encountered: