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)
  • Loading branch information
mxstbr committed Nov 9, 2020
1 parent 17a0d52 commit e4fd0ad
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 e4fd0ad

Please sign in to comment.