diff --git a/packages/gatsby-plugin-manifest/gatsby-node.js b/packages/gatsby-plugin-manifest/gatsby-node.js index 95f0a9c..c8b6765 100644 --- a/packages/gatsby-plugin-manifest/gatsby-node.js +++ b/packages/gatsby-plugin-manifest/gatsby-node.js @@ -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 {