Skip to content

HelpfulHuman/WebpackBlocks-GraphQL-Loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebpackBlocks-GraphQL-Loader

Simple wrapper around graphq-tag. Enables direct importing of .graphql and .gql files in your JS application.

Usage

Install via npm:

npm install --save-dev webpack-blocks-graphql

Then include in your webpack.config.js file:

var webpack = require("@webpack-blocks/webpack2");
var graphql = require("webpack-blocks-graphql");

module.exports = webpack.config([
  // ...
  graphql(),
  // ...
]);

That's it! 👏

About

Import `.graphql` and `.gql` files directly into your JS files as `graphql-tag`s.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published