next-plugin-mini-graphql

0.0.3 • Public • Published

Next Plugin Mini GraphQL

Provides Next.js support for .graphql files using graphql-mini-transforms.

Installation

npm install next-plugin-mini-graphql      # if using npm 
yarn add next-plugin-graphql              # if using yarn 

Usage

Create a next.config.js in your project

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

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i next-plugin-mini-graphql

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

2.93 kB

Total Files

4

Last publish

Collaborators

  • cartogram