Simple wrapper around graphq-tag. Enables direct import
ing of .graphql
and .gql
files in your JS application.
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! 👏