Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
feat: desctructure manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Dec 5, 2018
1 parent d742038 commit b8d937b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/gatsby-plugin-manifest/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ const makeManifest = ({ icon, ...manifest }) =>
}
})

exports.onPostBootstrap = (args, pluginOptions) =>
exports.onPostBootstrap = (args, { manifests, ...pluginOptions }) =>
new Promise((resolve, reject) => {
delete pluginOptions.plugins

if (Array.isArray(pluginOptions.manifests)) {
Promise.all(pluginOptions.manifests.map(makeManifest))
if (Array.isArray(manifests)) {
Promise.all(manifests.map(makeManifest))
.then(resolve)
.catch(resolve)
} else {
Expand Down

0 comments on commit b8d937b

Please sign in to comment.