From 562acca0363224f156c0bcc87d064a1e2f72611c Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Wed, 29 Jul 2015 11:23:10 -0700 Subject: [PATCH] Fixes stylesheet being discarded when used with "inject: 'head'". --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5094518..59d2834 100644 --- a/index.js +++ b/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); }