-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,20 +84,26 @@ exports.onPostBootstrap = async ( | |
cacheModeOverride = { cache_busting_mode: `name` } | ||
} | ||
|
||
return makeManifest(cache, reporter, { | ||
...manifest, | ||
...locale, | ||
...cacheModeOverride, | ||
}) | ||
return makeManifest( | ||
cache, | ||
reporter, | ||
{ | ||
...manifest, | ||
...locale, | ||
...cacheModeOverride, | ||
}, | ||
true | ||
) | ||
}) | ||
) | ||
} | ||
activity.end() | ||
} | ||
|
||
const makeManifest = async (cache, reporter, pluginOptions) => { | ||
const makeManifest = async (cache, reporter, pluginOptions, shouldLocalize) => { | ||
const { icon, ...manifest } = pluginOptions | ||
const suffix = pluginOptions.lang ? `_${pluginOptions.lang}` : `` | ||
const suffix = | ||
shouldLocalize && pluginOptions.lang ? `_${pluginOptions.lang}` : `` | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
moonmeister
Contributor
|
||
|
||
// Delete options we won't pass to the manifest.webmanifest. | ||
delete manifest.plugins | ||
|
Gatsby-ssr doesn't include a
shouldLocalize
option when calculating a suffix for the manifest link tag. Won't this break that? Also, I'm not entirely understanding why we can't add this sufffix to the default manifest here, can you explain?