html-webpack-plugin-template-vars
v2.28.2
Published
Simplifies creation of HTML files to serve your webpack bundles
Downloads
2
Maintainers
Readme
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.