Hi @leebenson
When I try to use graphql fragments as suggested in the Apollo docs 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)
I'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?
module: {
rules: [
{
test: /\.(graphql|gql)$/,
exclude: /node_modules/,
loader: 'graphql-tag/loader',
},
],
},
There 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.