Advertisement
Guest User

Untitled

a guest
Oct 5th, 2017
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. var HtmlWebpackPlugin = require("html-webpack-plugin");
  2. module.exports = {
  3. plugins: [
  4. new HtmlWebpackPlugin({
  5. filename: "publicgraphql/index.html", // Write the file to <public-path>/graphql/index.html
  6. inject: false, // Do not inject any of your project assets into the template
  7. GRAPHQL_VERSION: packageJSON.dependencies.graphql.replace(/[^0-9.]/g, ""), // Get the graphql version from my package.json
  8. template: "graphiql.ejs" // path to template
  9. })
  10. ]
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement