Skip to content

Commit

Permalink
Patch Webpack config to ignore xor|props plugins
Browse files Browse the repository at this point in the history
This works around a react-live issue (reported as FormidableLabs/react-live/issues/5) that was blocking the 'yarn buid' task for Gatsby, which in turn blocks the Netlify setup.
  • Loading branch information
bvaughn committed Aug 31, 2017
1 parent b38fa35 commit b4f037d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions www/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
'use strict';

const {resolve} = require('path');
const webpack = require('webpack');

exports.modifyWebpackConfig = ({ config, stage }) => {
// See https://github.com/FormidableLabs/react-live/issues/5
config.plugin('ignore', () => new webpack.IgnorePlugin(/^(xor|props)$/));

config.merge({
resolve: {
root: resolve(__dirname, './src'),
Expand Down

0 comments on commit b4f037d

Please sign in to comment.