From d3eed761f7c4c10b08e6555ce5390cc423110389 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Thu, 13 Aug 2015 09:49:29 +0200 Subject: [PATCH] Return minified html from promise --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b2150c2..1d7b7ea 100644 --- a/index.js +++ b/index.js @@ -262,7 +262,7 @@ HtmlWebpackPlugin.prototype.postProcessHtml = function(html, assets) { // If `options.minify` is set to true use the default minify options var minifyOptions = _.isObject(self.options.minify) ? self.options.minify : {}; try { - minify(html, minifyOptions); + return minify(html, minifyOptions); } catch(e) { Promise.reject(e); }