Return minified html from promise

This commit is contained in:
Simen Bekkhus 2015-08-13 09:49:29 +02:00 committed by Jan Nicklas
parent 9cb8dfa3aa
commit d3eed761f7
1 changed files with 1 additions and 1 deletions

View File

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