Merge pull request #74 from tlrobinson/master
Fixes stylesheet <link>s being discarded when used with "inject: 'head'"
This commit is contained in:
commit
c5d1a8e36e
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