Skip to content

Commit

Permalink
fix: generateIcons not called when cache busting disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
moonmeister committed Feb 1, 2019
1 parent a8ea82c commit b62da7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/gatsby-plugin-manifest/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ exports.onPostBootstrap = async (args, pluginOptions) => {
? pluginOptions.cache_busting_mode
: `query`

//if cacheBusting is being done via url query icons must be generated before cachebusting runs
//if cacheBusting is being done via url query icons must be generated before cache busting runs
if (cacheMode === `query`) {
await generateIcons(manifest.icons, icon)
}
Expand All @@ -72,8 +72,8 @@ exports.onPostBootstrap = async (args, pluginOptions) => {
})
}

//if file names are being modified by cacheBusting icons must be generated after cachebusting runs
if (cacheMode === `name`) {
//if file names are being modified by cacheBusting icons must be generated after cache busting runs
if (cacheMode !== `query`) {
await generateIcons(manifest.icons, icon)
}
}
Expand Down

0 comments on commit b62da7a

Please sign in to comment.