@asatelit/craco-graphql-loader

1.0.0 • Public • Published

GraphQL Loader plugin for CRACO

Forked version of craco-graphql-loader with updated dependencies. 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 MyQuery from "./MyQuery.graphl";

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


Made with love at Payt B.V.. We're hiring!

Package Sidebar

Install

npm i @asatelit/craco-graphql-loader

Weekly Downloads

23

Version

1.0.0

License

ISC

Unpacked Size

12.9 kB

Total Files

16

Last publish

Collaborators

  • asatelit