New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for nested objects #4
Comments
Maybe we can just make it support custom template engine? For your use case you can just pass that config as html-webpack-plugin's options: new HtmlWebpackPlugin({
config
}) |
How do you mean? When I pass in nested objects aka |
I mean this plugin is totally unnecessary, you can directly access the options of html-webpack-plugin instance in your template: // webpack config
new HtmlWebpackPlugin({
config,
template: './some/index.template.html'
}) Then in your template // html-webpack-plugin uses ejs template syntax by default
<%= htmlWebpackPlugin.options.config.foo.bar %> |
Oh I didn't know that was possible. Thanks for that @egoist |
Can I submit a PR to allow for an object of objects to be passed to the interpolate plugin?
This would allow me to do
And then in my
.html
fileThe text was updated successfully, but these errors were encountered: