Licence
MIT
Version
0.0.3
Deps
1
Size
3 kB
Vulns
0
Weekly
0
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;
},
});