Created
November 29, 2018 19:58
-
-
Save also/f70c0138603601b8611b2cfd88fc6a09 to your computer and use it in GitHub Desktop.
using @hs/webpack-graphql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": { | |
"@hs/webpack-graphql": "9.0.3", | |
"webpack": "3", | |
"webpack-dev-server": "2" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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