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