dotamir / craco-graphql

A craco plugin to use graphql with create-react-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

craco-graphql

A craco plugin to load .graphql query documents into your create-react-app application.

Installation

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

Usage

Add this configuration to your craco.config.js configuration file:

// craco.config.js
const CracoGraphQLPlugin = require('craco-graphql');

module.exports = {
	plugins: [{ plugin: CracoGraphQLPlugin }],
};

License

The MIT license

About

A craco plugin to use graphql with create-react-app


Languages

Language:JavaScript 87.2%Language:Shell 12.8%