You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the loader cannot use htmlWebpackPlugin values in ejs files.
It cannot simply use the data in individual files, but also the values provided by default by html-webpack-plugin.
Message
I would like to solve this problem, but I am not sure how to make it possible.
I would appreciate help from anyone who knows how to solve this.
Reference information
For reference, I will list the values of htmlWebpackPlugin for the various loaders that can be used and those that cannot.
Based on these, we would like to find the conditions under which the htmlWebpackPlugin value can be used in a file.
Loaders for which the value of htmlWebpackPlugin can be used
This plugin looks useful but this problem prevented me from using it, so definitely a +1 for this feature from me.
For anyone wondering about a workaround, I ended up not using this plugin at all and just calling the EJS module directly, passing in htmlWebpackPlugin as one of the template variables, and then passed the rendered template to templateContent in HtmlWebpackPlugin.
Problems with this loader
Currently, the loader cannot use
htmlWebpackPlugin
values in ejs files.It cannot simply use the data in individual files, but also the values provided by default by
html-webpack-plugin
.Message
I would like to solve this problem, but I am not sure how to make it possible.
I would appreciate help from anyone who knows how to solve this.
Reference information
For reference, I will list the values of
htmlWebpackPlugin
for the various loaders that can be used and those that cannot.Based on these, we would like to find the conditions under which the
htmlWebpackPlugin
value can be used in a file.Loaders for which the value of
htmlWebpackPlugin
can be usedLoaders for which the value of
htmlWebpackPlugin
is not availableSupplementary information
Also add the expected conditions under which this value will be available in the file.
The text was updated successfully, but these errors were encountered: