Skip to content
Fusebox plugin for .gql|.graphql imports
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

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');
You can’t perform that action at this time.