From bc777cef04e7d31ff753746ce536f43f51fab9a1 Mon Sep 17 00:00:00 2001 From: "Haddix, Steven" Date: Thu, 29 Dec 2016 12:04:53 -0500 Subject: [PATCH] Added done call to error handling so plugin properly returns errors to webpack --- src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 193aac7..5c67121 100644 --- a/src/index.js +++ b/src/index.js @@ -103,7 +103,10 @@ SuperAwesomeWebpackPlugin.prototype.apply = function(compiler) { Promise.all(sitePromises) .then(() => done()) - .catch((err) => compilation.errors.push(err.stack)) + .catch((err) =>{ + compilation.errors.push(err.stack) + done(); + }) } catch (err) { compilation.errors.push(err.stack); done();