Skip to content
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

feat(gatsby-plugin-offline): Merge workboxConfig and default options more deeply #19437

Merged
merged 2 commits into from
Nov 12, 2019

Conversation

trevorblades
Copy link
Contributor

Since we're already spreading the workboxConfig options into the defaults, it might make sense to use _.merge to more deeply merge the properties and array items together. This would mean that users don't need to copy over all of the default runtimeCaching array items if they only want to add another caching rule to the list.

Since we're already spreading the workboxConfig options into the defaults, it might make sense to use `_.merge` to more deeply merge the properties and array items together. This would mean that users don't need to copy over all of the default `runtimeCaching` array items if they only want to add another caching rule to the list.
@trevorblades trevorblades requested a review from a team as a code owner November 12, 2019 07:14
@trevorblades trevorblades changed the title Merge workboxConfig and default options feat(gatsby-plugin-offline) Merge workboxConfig and default options more deeply Nov 12, 2019
Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

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

Great idea! Thank you

@sidharthachatterjee sidharthachatterjee changed the title feat(gatsby-plugin-offline) Merge workboxConfig and default options more deeply feat(gatsby-plugin-offline): Merge workboxConfig and default options more deeply Nov 12, 2019
@sidharthachatterjee sidharthachatterjee merged commit 8791329 into master Nov 12, 2019
@delete-merged-branch delete-merged-branch bot deleted the trevorblades-patch-1 branch November 12, 2019 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants