webpack-hot-middleware
Advanced tools
Comparing version 2.19.1 to 2.20.0
{ | ||
"name": "webpack-hot-middleware", | ||
"version": "2.19.1", | ||
"version": "2.20.0", | ||
"description": "Webpack hot reloading you can attach to your own server", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -17,3 +17,17 @@ /** | ||
var failureStatuses = { abort: 1, fail: 1 }; | ||
var applyOptions = { ignoreUnaccepted: true }; | ||
var applyOptions = { | ||
ignoreUnaccepted: true, | ||
ignoreDeclined: true, | ||
ignoreErrored: true, | ||
onUnaccepted: function(data) { | ||
console.warn("Ignored an update to unaccepted module " + data.chain.join(" -> ")); | ||
}, | ||
onDeclined: function(data) { | ||
console.warn("Ignored an update to declined module " + data.chain.join(" -> ")); | ||
}, | ||
onErrored: function(data) { | ||
console.error(data.error); | ||
console.warn("Ignored an error while updating module " + data.moduleId + " (" + data.type + ")"); | ||
} | ||
} | ||
@@ -20,0 +34,0 @@ function upToDate(hash) { |
110341
938