# next-plugin-graphql

> Next plugin for .graphql and .gql files using graphql-tag

Latest version **0.0.2** (published 2018-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install next-plugin-graphql
pnpm add next-plugin-graphql
yarn add next-plugin-graphql
bun add next-plugin-graphql
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-10-28 |
| First published | 2018-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 58 |
| Maintainers | lfades |

## Links

- npm: https://www.npmjs.com/package/next-plugin-graphql
- Repository: https://github.com/lfades/next-plugin-graphql
- Homepage: https://github.com/lfades/next-plugin-graphql#readme
- Issues: https://github.com/lfades/next-plugin-graphql/issues
- npm.io page: https://npm.io/package/next-plugin-graphql

## Dependencies (1)

- [graphql-tag](https://npm.io/package/graphql-tag.md) ^2.10.0

## Recent versions

- 0.0.2 (latest) — 2018-10-28
- 0.0.1 — 2018-02-13

## README

# Next.js + Graphql

Use [Graphql](http://graphql.org/) files with [Next.js](https://github.com/zeit/next.js)

## Installation

```sh
npm install next-plugin-graphql
```

or

```sh
yarn add next-plugin-graphql
```

## Usage

Create a `next.config.js` in your project

```js
// next.config.js
const withGraphql = require('next-plugin-graphql')
module.exports = withGraphql()
```

Optionally you can add your custom Next.js configuration as parameter

```js
// next.config.js
const withGraphql = require('next-plugin-graphql')
module.exports = withGraphql({
  webpack(config, options) {
    return config
  }
})
```

---
_Source: https://npm.io/package/next-plugin-graphql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
