'Using template parameters/variables in Webpack partial HTML?

I’m using the html-webpack-plugin and html-webpack-partials-plugin to inject html snippets into my templates.

Variables defined in the templates and under the templateParameters objects in the config file don’t seem to work in the partial files.

Is there a way to dynamically import these template variables into the partial files so the html snippets can vary based on which template they are in?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source