diff --git a/middleware.js b/middleware.js index abb61f690..fbd433674 100644 --- a/middleware.js +++ b/middleware.js @@ -265,8 +265,7 @@ module.exports = function(compiler, options) { webpackDevMiddleware.waitUntilValid = function(callback) { callback = callback || function() {}; - if(!watching || !watching.running) callback(); - else ready(callback, {}); + ready(callback, {}); }; webpackDevMiddleware.invalidate = function(callback) {