{"action":"created","issue":{"url":"https://api.github.com/repos/reactql/kit/issues/32","repository_url":"https://api.github.com/repos/reactql/kit","labels_url":"https://api.github.com/repos/reactql/kit/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/reactql/kit/issues/32/comments","events_url":"https://api.github.com/repos/reactql/kit/issues/32/events","html_url":"https://github.com/reactql/kit/issues/32","id":233707799,"number":32,"title":"Apollo + graphql-tag/loader + fragments + #import not working in production","user":{"login":"tsdexter","id":4126987,"avatar_url":"https://avatars3.githubusercontent.com/u/4126987?v=3","gravatar_id":"","url":"https://api.github.com/users/tsdexter","html_url":"https://github.com/tsdexter","followers_url":"https://api.github.com/users/tsdexter/followers","following_url":"https://api.github.com/users/tsdexter/following{/other_user}","gists_url":"https://api.github.com/users/tsdexter/gists{/gist_id}","starred_url":"https://api.github.com/users/tsdexter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsdexter/subscriptions","organizations_url":"https://api.github.com/users/tsdexter/orgs","repos_url":"https://api.github.com/users/tsdexter/repos","events_url":"https://api.github.com/users/tsdexter/events{/privacy}","received_events_url":"https://api.github.com/users/tsdexter/received_events","type":"User","site_admin":false},"labels":[{"id":584445708,"url":"https://api.github.com/repos/reactql/kit/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"leebenson","id":719722,"avatar_url":"https://avatars0.githubusercontent.com/u/719722?v=3","gravatar_id":"","url":"https://api.github.com/users/leebenson","html_url":"https://github.com/leebenson","followers_url":"https://api.github.com/users/leebenson/followers","following_url":"https://api.github.com/users/leebenson/following{/other_user}","gists_url":"https://api.github.com/users/leebenson/gists{/gist_id}","starred_url":"https://api.github.com/users/leebenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebenson/subscriptions","organizations_url":"https://api.github.com/users/leebenson/orgs","repos_url":"https://api.github.com/users/leebenson/repos","events_url":"https://api.github.com/users/leebenson/events{/privacy}","received_events_url":"https://api.github.com/users/leebenson/received_events","type":"User","site_admin":false},"assignees":[{"login":"leebenson","id":719722,"avatar_url":"https://avatars0.githubusercontent.com/u/719722?v=3","gravatar_id":"","url":"https://api.github.com/users/leebenson","html_url":"https://github.com/leebenson","followers_url":"https://api.github.com/users/leebenson/followers","following_url":"https://api.github.com/users/leebenson/following{/other_user}","gists_url":"https://api.github.com/users/leebenson/gists{/gist_id}","starred_url":"https://api.github.com/users/leebenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebenson/subscriptions","organizations_url":"https://api.github.com/users/leebenson/orgs","repos_url":"https://api.github.com/users/leebenson/repos","events_url":"https://api.github.com/users/leebenson/events{/privacy}","received_events_url":"https://api.github.com/users/leebenson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-06-05T20:54:10Z","updated_at":"2017-06-05T21:12:39Z","closed_at":null,"body":"Hi @leebenson \r\n\r\nWhen I try to use graphql fragments as suggested in [the Apollo docs](http://dev.apollodata.com/react/webpack.html#Fragments) it works fine for dev but when I try to build production it is failing at the `#import`  (I can grab the actual error message when I'm back at my computer later but I'm guessing I'm just setting up the webpack config incorrectly)\r\n\r\nI've added to webpack config in loaders section in both `base.js` and `browser.js` the snippet from apollo which gets it going locally for dev but not for production - do you know how to set this up properly to use fragments and `graphql-tag/loader`?\r\n\r\n```\r\nmodule: {\r\n  rules: [\r\n    {\r\n      test: /\\.(graphql|gql)$/,\r\n      exclude: /node_modules/,\r\n      loader: 'graphql-tag/loader',\r\n    },\r\n  ],\r\n},\r\n```\r\n\r\nThere was no rules section in the reactql configs so I put it in loaders as it had similar objects and I'm not a webpack expert. "},"comment":{"url":"https://api.github.com/repos/reactql/kit/issues/comments/306311746","html_url":"https://github.com/reactql/kit/issues/32#issuecomment-306311746","issue_url":"https://api.github.com/repos/reactql/kit/issues/32","id":306311746,"user":{"login":"leebenson","id":719722,"avatar_url":"https://avatars0.githubusercontent.com/u/719722?v=3","gravatar_id":"","url":"https://api.github.com/users/leebenson","html_url":"https://github.com/leebenson","followers_url":"https://api.github.com/users/leebenson/followers","following_url":"https://api.github.com/users/leebenson/following{/other_user}","gists_url":"https://api.github.com/users/leebenson/gists{/gist_id}","starred_url":"https://api.github.com/users/leebenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebenson/subscriptions","organizations_url":"https://api.github.com/users/leebenson/orgs","repos_url":"https://api.github.com/users/leebenson/repos","events_url":"https://api.github.com/users/leebenson/events{/privacy}","received_events_url":"https://api.github.com/users/leebenson/received_events","type":"User","site_admin":false},"created_at":"2017-06-05T21:12:39Z","updated_at":"2017-06-05T21:12:39Z","body":"@tsdexter - I'll add this as a feature to the next version."}}
{"actor":{"display_login":"leebenson"}}