Fusebox plugin for .gql|.graphql imports
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
index.js
package.json

README.md

fuse-box-graphql-plugin

graphql-tag loader for Webpack lets you keep GraphQL queries in separate files.

This lib makes those work in Fusebox.

Install

npm install fuse-box-graphql-plugin

Usage

const fsbx = require('fuse-box');
const GraphQLPlugin = require('fuse-box-graphql-plugin');

fsbx.FuseBox.init({
  homeDir: 'src/',
  plugins: [
    ['.graphql|.gql', GraphQLPlugin()]
  ],
}).bundle('> index.js');