Giter Club home page Giter Club logo

Comments (2)

johnnyreilly avatar johnnyreilly commented on May 29, 2024 1

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.

jeffposnick avatar jeffposnick commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.