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
This makes partials work using this syntax <%=require('./partials/logo.html')%>. I assume your options.titlereference will also work.
Basically when the suffix is .html then html-loader will process the file but when it is .ejs htmlWebpackPlugin will.
However the issue is now that image paths don't resolve. I think because html-loader is handling that. My solution is just to make sure references to images are within a partial as this file can end in .html.
Hope this helps someone. If anyone knows how to resolve image paths in the index.html.ejs template please let me know.
html-loader doesn't seem to replace template variables.
Things like
<title><%= htmlWebpackPlugin.options.title %></title>
won't work.Any suggestions on how to make this work?
The text was updated successfully, but these errors were encountered: