This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

preact-cli-plugin-graphql

2.0.0 • Public • Published

preact-cli-plugin-graphql

Preprocess GraphQL queries with the Preact CLI.

NPM version Build Status

Installation

$ yarn add preact-cli-plugin-graphql graphql-tag --dev

Alternatively using npm:

$ npm i preact-cli-plugin-graphql graphql-tag --save-dev

And include in your project by creating a preact.config.js:

const graphql = require('preact-cli-plugin-graphql');

export default function (config) {
  graphql(config);
}

Usage

The plugin allows to import any graphql files (with the .graphql or .gql) extension directly within your script:

import query from './query.gql';

You can read more about this processing at the graphql-tag documentation

License

MIT © Robin van der Vleuten

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i preact-cli-plugin-graphql

    Weekly Downloads

    0

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    3.28 kB

    Total Files

    5

    Last publish

    Collaborators

    • robinvdvleuten