joyent-portal/spikes/graphql/apollo-redux/scripts/config-overrides.dev.js
2017-05-11 13:13:01 +01:00

15 lines
340 B
JavaScript

const path = require('path');
module.exports = function(config) {
// Add support for loading .graphql files
config.module.loaders[0].exclude.push(/\.(graphql|gql)$/);
config.module.loaders.push({
test: /\.(graphql|gql)$/,
exclude: /node_modules/,
loader: require.resolve('graphql-tag/loader'),
});
return config;
}