Comments (2)
Thanks for the comments @jeffposnick. I think I'm beginning to get up and running. I'm very keen on PWAs and as part of that I want the barrier to entry to be as low as possible. Workbox certainly helps with that which is wonderful. I feel that not being able to work out how to get up and running directly from the documentation is a missed opportunity. So I wanted to highlight that.
Thanks again for your work and I did enjoy your talk on workbox. (Was watching it earlier on)
from workbox-microsite.
Hello John!
Yes, that's something that we don't explain in in great detail in the project's documentation.
The service worker that Workbox generates (whether via the Webpack plugin, workbox-cli
, or some other build integration) can be registered using the best practices that apply to other service workers. The best documentation for that is https://developers.google.com/web/fundamentals/primers/service-workers/registration (and we've started linking to that in the service worker template used in v3).
The example registration in that article needs to execute within the context of your web application, but in terms of "where" the code needs to live, that's up to you. If you're looking for examples to follow could be what create-react-app
is doing.
We do also have a rewritten Webpack getting started guide that will be published in the near future; CC: @kaycebasques to double-check that we talk enough about registration (I'm almost certain that the demo does).
from workbox-microsite.
Related Issues (20)
- Author V3 microsite plan HOT 1
- Link to Instructor Led Training for Workbox
- V3 Microsite Plans HOT 10
- Migration Guide Asks / Meta tracking Bug HOT 2
- v2 Refresh for Examples HOT 1
- Migrate samples, using v3 codebase, to glitch
- webpack plugin documentation lacks configuration info HOT 4
- [Overview] the injectManifest() example is not found HOT 1
- Tell me more about this "configuration" file HOT 2
- how can i apply this in wordpress ?
- how i can apply in wordpress
- Add public calendar
- Errors in deployment pipeline not treated as fatal HOT 1
- Add approved company logos to microsite
- Hard to read the text on the site
- Code in overview.html is not color highlighted
- Auto expand instance method documentations HOT 1
- Add ability to have markdown files for a specific module
- [Overview] How to eliminate unnecessary files. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workbox-microsite.