Skip to content
This repository has been archived by the owner on Apr 25, 2018. It is now read-only.

Tell me more about this "configuration" file #111

Open
johnnyreilly opened this issue Nov 2, 2017 · 2 comments
Open

Tell me more about this "configuration" file #111

johnnyreilly opened this issue Nov 2, 2017 · 2 comments

Comments

@johnnyreilly
Copy link

Hi,

I've been reading and re-reading this part of the docs and I'm a little confused:

  1. Create a configuration file telling Workbox which resources to cache.
  2. Run one of the Workbox tools in your project directory before each deploy. Workbox generates the service worker code needed for caching and updating the resources.

There doesn't seem to be reference anywhere else in the docs as to what this config file is and how to create it. Or perhaps there is and I'm just being a bit dim. (Entirely possible!)

Either way, it might be good to be a little more explicit here in the docs as to what you mean. Perhaps a link how you could create this config file?

Also, am I right in thinking that, if said config file exists, workbox will just pick it up and use it by convention? It looks for a file with a particular name and if it finds it, it uses it?

In case it's relevant I'm using the webpack plugin to generate my service worker and I'm looking with interest at this talk of a configuration file, imagining it might allow me to have more control over the strategies I might want to use.

Thanks for all your work! I really like the potential workbox has to make PWAs more straightforward. I'm open to submitting docs PRs if that's helpful BTW?

@johnnyreilly
Copy link
Author

@johnnyreilly
Copy link
Author

johnnyreilly commented Nov 3, 2017

So I think that this documents the options that can be supplied to the workbox-webpack-plugin are these:

https://developers.google.com/web/tools/workbox/reference-docs/latest/module-workbox-build#.Configuration

Is that right?

BTW it looks like workboxjs.org has been retired in place of https://developers.google.com/web/tools/workbox/ . (Probably related to #108) Is that intentional?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant