Files
react.dev/gatsby/onCreateWebpackConfig.js
Alexander Nanberg 71b03486c0 Upgrade to Gatsby v2 (#1104)
* Upgrade to Gatsby v2

* Remove unnecessary polyfills since gatsby already provides them

* Move global styles to gatsby-browser

* Add fb comment and convert to cjs

* Revert to use pageQuery again

* Add back html.js

* Update dependencies

* Move TitleAndMetaTags

* Replace glamor/reset with normalize.css which fixes style order in prod

* Prettier formatting

* Remove unused types

* Remove old layout

* Fix versions link

* Update deps

* Update deps

* Remove hack since it's no longer needed

* Update dependencies

* Fix build error

* Fix prettier config resolution

* Update gatsby

* Remove custom onCreatePage logic

* Update dependencies

* Fix build

* Update dependencies

* prettier formatting

* update dependencies

* add custom babel config for flow

* upgrade dependencies

* update dependencies

* use stable gatsby release
2018-09-19 13:11:19 +01:00

24 lines
502 B
JavaScript

/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* @emails react-core
*/
'use strict';
const {resolve} = require('path');
const webpack = require('webpack');
module.exports = ({stage, actions}) => {
actions.setWebpackConfig({
resolve: {
modules: [
resolve(__dirname, '../src'),
resolve(__dirname, '../node_modules'),
],
},
// See https://github.com/FormidableLabs/react-live/issues/5
plugins: [new webpack.IgnorePlugin(/^(xor|props)$/)],
});
};