A craco plugin to load .graphql
query documents into your create-react-app application.
Run the following command to install craco-graphql
in your project:
npm install --save-dev craco-graphql @craco/craco
OR
yarn add --dev craco-graphql @craco/craco
Add this configuration to your craco.config.js
configuration file:
// craco.config.js
const CracoGraphQLPlugin = require('craco-graphql');
module.exports = {
plugins: [{ plugin: CracoGraphQLPlugin }],
};
The MIT license