Don't try to close webpack watcher if it doesn't exist.

This commit is contained in:
Simo Kinnunen
2014-05-01 10:56:50 +09:00
parent bd75d20a45
commit 2379acae5d

View File

@@ -38,7 +38,9 @@ module.exports = function(options) {
})
lifecycle.observe(function() {
watching.watcher.close()
if (watching.watcher) {
watching.watcher.close()
}
})
function doneListener(stats) {