node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


HTML Webpack Plugin With Template Variables The same as html-webpack-plugin but enables to pass template variables as root variables instead of getting vars from htmlWebpackPlugin.options


Install the plugin with npm:

$ npm install html-webpack-plugin-template-vars --save-dev
const webpackPlugins = [
  new HtmlWebpackPlugin({
    template: 'index.ejs',
    templateVariables: {
        hello: 'world',
        foo: 'baz',


This project is licensed under MIT.