Skip to content

Commit

Permalink
fix(gatsby-plugin-offline): add workboxConfig.maximumFileSizeToCacheI…
Browse files Browse the repository at this point in the history
…nBytes to options schema (#27913)

(cherry picked from commit e4fd0ad)
  • Loading branch information
mxstbr authored and vladar committed Nov 9, 2020
1 parent debfca9 commit 9750731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ describe(`pluginOptionsSchema`, () => {
},
cacheId: `gatsby-plugin-offline`,
dontCacheBustURLsMatching: /(\.js$|\.css$|static\/)/,
maximumFileSizeToCacheInBytes: 4800,
runtimeCaching: [
{
urlPattern: /(\.js$|\.css$|static\/)/,
Expand Down
1 change: 1 addition & 0 deletions packages/gatsby-plugin-offline/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ exports.pluginOptionsSchema = function ({ Joi }) {
modifyURLPrefix: Joi.object().pattern(MATCH_ALL_KEYS, Joi.string()),
cacheId: Joi.string(),
dontCacheBustURLsMatching: Joi.object().instance(RegExp),
maximumFileSizeToCacheInBytes: Joi.number(),
runtimeCaching: Joi.array().items(
Joi.object({
urlPattern: Joi.object().instance(RegExp),
Expand Down

0 comments on commit 9750731

Please sign in to comment.