Skip to content

Instantly share code, notes, and snippets.

@also
Created November 29, 2018 19:58
Show Gist options
  • Save also/f70c0138603601b8611b2cfd88fc6a09 to your computer and use it in GitHub Desktop.
Save also/f70c0138603601b8611b2cfd88fc6a09 to your computer and use it in GitHub Desktop.
using @hs/webpack-graphql
{
"devDependencies": {
"@hs/webpack-graphql": "9.0.3",
"webpack": "3",
"webpack-dev-server": "2"
}
}
const WebpackGraphql = require('@hs/webpack-graphql').default;
module.exports = {
entry: './src/index.js',
output: {
filename: 'output.js',
},
devServer: {},
plugins: [new WebpackGraphql({ path: '/api', typeDefs: [], resolvers: [] })],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment