Skip to content

Commit

Permalink
fix(gatsby-theme-docz): use options from gatsby-config
Browse files Browse the repository at this point in the history
The gatsby-node `onPreInit` hook passes in two arguments, the _second_ of which is the plugin options.
  • Loading branch information
lettertwo committed Mar 5, 2019
1 parent 26f7f90 commit 61e862e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/gatsby-theme-docz/src/node/onPreInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const touchTemplateWithPaths = paths => async (filepath, opts) => {
await touch(dest, raw)
}

module.exports = async opts => {
module.exports = async (_, opts) => {
const { paths, ...config } = await parseConfig(opts)
const componentPath = mountComponentPath(paths)
const touchTemplate = touchTemplateWithPaths(paths)
Expand Down

0 comments on commit 61e862e

Please sign in to comment.