Ty3uK / parcel-plugin-graphql-raw

Allows Parcel to export GraphQL files as plain text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parcel graphql

Travis CI Build Status Dependencies npm package License: MIT

parcel-plugin-graphql-raw

Some packages (like nanographql) uses plain-text GraphQL Schema instead of JSON, generated by graphql-tag.

Since GraphqlAsset uses graphql-tag, this plugin allows Parcel to export GraphQL files as plain text

Usage

Install plugin:

# via yarn
yarn add -D parcel-plugin-graphql-raw
# via npm
npm i -D parcel-plugin-graphql-raw

Import GraphQL file (with .graphql or .gql extension):

import simple from './simple.gql';

License

MIT

About

Allows Parcel to export GraphQL files as plain text

License:MIT License


Languages

Language:JavaScript 100.0%