Fixes stylesheet <links> being discarded when used with "inject: 'head'".
This commit is contained in:
parent
df09669ef5
commit
562acca036
2
index.js
2
index.js
|
|
@ -300,7 +300,7 @@ HtmlWebpackPlugin.prototype.injectAssetsIntoHtml = function(html, templateParams
|
|||
head = head.concat(styles);
|
||||
// Add scripts to body or head
|
||||
if (this.options.inject === 'head') {
|
||||
head = body.concat(scripts);
|
||||
head = head.concat(scripts);
|
||||
} else {
|
||||
body = body.concat(scripts);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue