From 49f3c16c2c09bd5f40e70bd1abe14c01c24206d0 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Wed, 2 Jan 2019 18:39:07 -0500 Subject: [PATCH] Adding config to make component importing easier --- gatsby-node.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gatsby-node.js diff --git a/gatsby-node.js b/gatsby-node.js new file mode 100644 index 0000000..7061327 --- /dev/null +++ b/gatsby-node.js @@ -0,0 +1,9 @@ +const path = require('path'); + +exports.onCreateWebpackConfig = ({ actions }) => { + actions.setWebpackConfig({ + resolve: { + modules: [path.resolve(__dirname, 'src'), 'node_modules'] + } + }); +};