Я использую плагин webpack html для генерации html-страницы из файла graphiql.ejs, но он не генерирует html-страницу, когда я запускаю npm start
webpack.config.js
var HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
plugins: [
new HtmlWebpackPlugin({
filename: "public/graphql/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
})
]
};
Я хочу сгенерировать index.html внутри каталога /public/graphql. Кто-нибудь знает, что я делаю неправильно? Есть ли другая команда для запуска webpack?