Skip to content

Commit

Permalink
Fix template path resolving regexp to support loader query parameters (
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript authored and jantimon committed Jan 29, 2017
1 parent 82bba6a commit 78cb986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 78cb986

Please sign in to comment.