Skip to content

Commit

Permalink
Merge pull request #203 from jlengstorf/patch-1
Browse files Browse the repository at this point in the history
docs(webpack): update webpack config to Webpack 2
  • Loading branch information
Sashko Stubailo authored Apr 5, 2017
2 parents ee24e9e + a8ff22e commit 0263a85
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions react-docs/source/webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ query CurrentUserForLayout {
You can load this file adding a rule in your webpack config file:

```js
loaders: [
{
test: /\.(graphql|gql)$/,
exclude: /node_modules/,
loader: 'graphql-tag/loader'
}
]
module: {
rules: [
{
test: /\.(graphql|gql)$/,
exclude: /node_modules/,
loader: 'graphql-tag/loader',
},
],
},
```

As you can see, `.graphql` or `.gql` files will be parsed whenever imported:
Expand Down

0 comments on commit 0263a85

Please sign in to comment.