craco-graphql-loader

1.0.1 • Public • Published

GraphQL Loader plugin for CRACO

Plugin for craco which allows configuring the graphql-tag/loader inside of react-scripts applications.

Usage

Install

npm i craco-graphql-loader
 
# or 
 
yarn add craco-graphql-loader

Add this plugin to your craco.config.js:

const cracoGraphqlLoader = require("craco-graphql-loader");
 
module.exports = {
  plugins: [{ plugin: cracoGraphqlLoader }],
};

Then import any query:

import GreatQuery from './MyAwesomeQuery.graphl`

For full usage instructions visit: https://github.com/apollographql/graphql-tag

/craco-graphql-loader/

    Package Sidebar

    Install

    npm i craco-graphql-loader

    Weekly Downloads

    458

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    9.38 kB

    Total Files

    11

    Last publish

    Collaborators

    • ivdma