-
Notifications
You must be signed in to change notification settings - Fork 823
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
CLI support for --watch #1776
CLI support for --watch #1776
Conversation
PR-Bot Size PluginChanged File Sizes
New Files
All File SizesView Table
Workbox Aggregate Size Plugin9.81KB gzip'ed (65% of limit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one optional suggestion.
logger.warn(warning); | ||
} | ||
|
||
logger.log(`The service worker was written to ${config.swDest}\n` + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm totally fine if we don't do this, but it might be nice have a slightly different log message in the case of a rebuild do to a watched file changing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an additional log message at L39 which I think takes care of calling out that distinction.
Prior to filing a PR, please:
gulp lint test
passes locally.R: @philipwalton
Fixes #1490
Adds support for a
--watch
flag that can be passed to the CLI'sinjectManifest
andgenerateSW
modes. If provided, the CLI will stay running and will rebuild the SW whenever one of theglobPatterns
matches changes.