mirror of https://github.com/webpack/webpack.git
advertise the NamedModulesPlugin for HMR
This commit is contained in:
parent
c7261412cf
commit
6b4ced42ad
|
@ -21,5 +21,10 @@ module.exports = function(updatedModules, renewedModules) {
|
|||
renewedModules.forEach(function(moduleId) {
|
||||
console.log("[HMR] - " + moduleId);
|
||||
});
|
||||
var numberIds = renewedModules.every(function(moduleId) {
|
||||
return typeof moduleId === "number";
|
||||
});
|
||||
if(numberIds)
|
||||
console.log("[HMR] Consider using the NamedModulesPlugin for module names.")
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue