From 26f612d1abcd4708891b792801ec1ea962fd2fa9 Mon Sep 17 00:00:00 2001 From: Vladimir Kalinichev Date: Thu, 9 Mar 2017 23:28:28 +0300 Subject: [PATCH] Fix webpack-dev-server hanging on recompile --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7498309..74396e7 100644 --- a/index.js +++ b/index.js @@ -48,10 +48,10 @@ OpenBrowserPlugin.prototype.apply = function(compiler) { }, delay); }) - compiler.plugin('watch-run', once(function checkWatchingMode(watching, done) { + compiler.plugin('watch-run', function checkWatchingMode(watching, done) { isWatching = true; done(); - })); + }); compiler.plugin('done', function doneCallback(stats) { if (isWatching && (!stats.hasErrors() || ignoreErrors)) {