-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
I want to import files in different locations, how to use inject ??? #624
Comments
+1 |
Did you try by using a custom template? |
For my purposes, I found an alternative for what I wanted to accomplish, but to your comment; I'm using (apologies if im high jacking this thread. i just happened to be looking for this exact question nearly the same time OP posted it) |
@Squidies Looks there: https://github.com/jantimon/html-webpack-plugin/blob/master/docs/template-option.md As long as you have the @Squidies Make sure to share your result, so you can help @zhe-he in the meantime ;) |
To be honest, I have not used a custom template. |
Thanks @mastilver, I'd taken a look at that, but could only find examples for Unfortunately I don't think my specific situation will apply. For my situation I was trying to load a custom build for modernizr, but ended up using the @zhe-he, check out the link @mastilver provided along with https://github.com/jantimon/html-webpack-plugin/tree/master/examples/custom-template In particular the template.html file. That might be a way to accomplish what you're trying to do. |
@Squidies I may have seen the fake example, it can not help me. |
It won't work with inject - you would have to write a real template. |
@jantimon Can you provide an example of a template that would do this? I have the same use case, where I want to have one bundle located in FWIW: I am also not able to get the Title example working. The rendered HTML shows: |
How to get/provide bundle file name with hash in these variables? From what I know, it is available only after webpack compilation. The closest solution I found is this one. But writing your own plugin seems to be an overkill. Imho, it would be much better that such option existed in this plugin. You use |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
it will be:
How to use
inject
can be as follows ->The text was updated successfully, but these errors were encountered: