Fixes stylesheet <links> being discarded when used with "inject: 'head'".

This commit is contained in:
Tom Robinson 2015-07-29 11:23:10 -07:00
parent df09669ef5
commit 562acca036
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}