Skip to content
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

About the value of htmlWebpackPlugin #23

Open
dc7290 opened this issue Mar 15, 2022 · 1 comment
Open

About the value of htmlWebpackPlugin #23

dc7290 opened this issue Mar 15, 2022 · 1 comment

Comments

@dc7290
Copy link
Owner

dc7290 commented Mar 15, 2022

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 used

Loaders for which the value of htmlWebpackPlugin is not available

Supplementary information

Also add the expected conditions under which this value will be available in the file.

  • Single loader instead of chained loaders
@dc7290 dc7290 pinned this issue Mar 15, 2022
@tstibbs
Copy link

tstibbs commented Dec 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants