Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit d3716d5

Browse files
committed
Add missing graphql loader in production config
1 parent 7e3357d commit d3716d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/react-scripts/config/webpack.config.prod.js

+5
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ module.exports = {
188188
},
189189
],
190190
},
191+
// The GraphQL loader preprocesses GraphQL queries in .graphql files.
192+
{
193+
test: /\.(graphql)$/,
194+
loader: 'graphql-tag/loader',
195+
},
191196
// The notation here is somewhat confusing.
192197
// "postcss" loader applies autoprefixer to our CSS.
193198
// "css" loader resolves paths in CSS and adds assets as dependencies.

0 commit comments

Comments
 (0)