Skip to content

Commit

Permalink
[plugin-favicon] Add user-specifiable icon options
Browse files Browse the repository at this point in the history
Resolves #12793
  • Loading branch information
kripod authored Mar 23, 2019
1 parent c248734 commit ea1c78b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/gatsby-plugin-manifest/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ exports.onPostBootstrap = async (args, pluginOptions) => {
manifest.icons = defaultIcons
}

// Specify extra options for each icon (if requested).
manifest.icons.forEach(icon => {
Object.assign(icon, pluginOptions.icon_options)
})

// Determine destination path for icons.
const iconPath = path.join(`public`, path.dirname(manifest.icons[0].src))

Expand Down

0 comments on commit ea1c78b

Please sign in to comment.