Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Add a warning about editing the generated output #184

Merged
merged 2 commits into from
Sep 21, 2016

Conversation

jeffposnick
Copy link
Contributor

@jeffposnick jeffposnick commented Sep 19, 2016

R: @addyosmani @gauntface
CC: @jpmedley

We should still do a better job about explaining how to extend the service worker in the docs (see #49), but in the meantime, maybe this warning will decrease the chance of someone manually editing the generated output.

// If you need to extend the behavior of the generated service worker, the best approach is to write
// additional code and include it using the importScripts option:
// https://github.com/GoogleChrome/sw-precache#importscripts-arraystring
// Alternatively, it's possible to make changes to the underlying template file and then use that as the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Text LGTM. To improve readability can we introduce newlines (just an empty // line block) between 21-22, 24-25?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@jeffposnick jeffposnick merged commit f99b7a7 into master Sep 21, 2016
@jeffposnick jeffposnick deleted the warn-about-editing-output branch September 21, 2016 15:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants