Fix template path resolving regexp to support loader query parameters (#542)
This commit is contained in:
parent
82bba6a5f6
commit
78cb9867e1
2
index.js
2
index.js
|
|
@ -580,7 +580,7 @@ HtmlWebpackPlugin.prototype.getFullTemplatePath = function (template, context) {
|
|||
}
|
||||
// Resolve template path
|
||||
return template.replace(
|
||||
/([!])([^/\\][^!?]+|[^/\\!?])($|\?.+$)/,
|
||||
/([!])([^/\\][^!?]+|[^/\\!?])($|\?[^!?\n]+$)/,
|
||||
function (match, prefix, filepath, postfix) {
|
||||
return prefix + path.resolve(filepath) + postfix;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue