-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workbox-routing code samples should be complete #643
Comments
I'm using |
This Hooking all of these code samples up to a CI is a good way to keep the docs up-to-date |
Looks like I need to install some other |
So the example you are referring to is using the lower level module (RegExpRoute can be found in the reference-docs somewhere) Workbox-sw actually abstracts / simplifies this so that you can just call registerRoute with a regex and it'll generate it under the hood. We had an open issue about how we should indicate higher level from lower level modules but it never really got addressed. |
The docs talk about Additionally, you don't allow the same functionality. I cannot pass a custom method, e.g., |
Looks like my grumpiness is because #644 isn't part of a released build yet. That adds |
I'm going to close this as the demos for V3 that are in / landing should cover this (and it simplifies things greatly with the CDN). |
Current sample for RegExpRoute is:
importScript()
call that imports the Workbox library (is that all that's needed? Or do I need to import some special script for the routing library?), and it's missing the definition forworkbox
(something likeconst workbox = new WorkboxSW()
... I'm assuming). When you omit the definition, it makes it seem likeworkbox
is a definitive name, when in reality it's just an arbitrary variable nameThe text was updated successfully, but these errors were encountered: