Skip to content

Commit

Permalink
Mention webpack-configurator (#1830)
Browse files Browse the repository at this point in the history
Currently there is no way for readers to know that Gatsby is using `webpack-configurator` and to look there for documentation on how to modify the config.

I also merged the first to sentences into one paragraph, but I can remove that change if you want.
  • Loading branch information
Caleb Whiting authored and sebastienfi committed Aug 16, 2017
1 parent 96117b1 commit f6e360c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/docs/add-custom-webpack-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ you to contribute back your plugin to the Gatsby repo so it's available to
others (including your future self 😀)._

To add custom webpack configurations, create (if there's not one already)
a `gatsby-node.js` file in your root directory.

Inside this file, export a function called `modifyWebpackConfig`.
a `gatsby-node.js` file in your root directory. Inside this file, export a function called `modifyWebpackConfig`.

When Gatsby creates its webpack config, this function will be called allowing you to modify the default
webpack config.
webpack config using [webpack-configurator](https://github.com/lewie9021/webpack-configurator).

Gatsby does multiple webpack builds with somewhat different configuration. We
call each build type a "stage". The following stages exist:
Expand Down

0 comments on commit f6e360c

Please sign in to comment.