Fix existing manifest regex test
This commit is contained in:
parent
73a61a94e9
commit
82ef236cb1
2
index.js
2
index.js
|
|
@ -302,7 +302,7 @@ HtmlWebpackPlugin.prototype.injectAssetsIntoHtml = function(html, templateParams
|
|||
if (assets.manifest) {
|
||||
html = html.replace(/(<html.*)(>)/i, function (match, start, end) {
|
||||
// Append the manifest only if no manifest was specified
|
||||
if (match.test(/\smanifest\s*=/)) {
|
||||
if (/\smanifest\s*=/.test(match)) {
|
||||
return match;
|
||||
}
|
||||
return start + ' manifest="' + assets.manifest + '"' + end;
|
||||
|
|
|
|||
Loading…
Reference in New Issue