2.28.2 • Published 7 years ago

html-webpack-plugin-template-vars v2.28.2

Weekly downloads
37
License
MIT
Repository
github
Last release
7 years ago

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

Installation

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',
    }
  }),
];

License

This project is licensed under MIT.