From b7244234f8a5bc4c5df5f29aca71882d5de575aa Mon Sep 17 00:00:00 2001 From: Sven Gaubert Date: Thu, 18 Apr 2019 07:13:52 +0800 Subject: [PATCH] clearCache fallbacks to chunk.id if chunk.name is null --- bin/cmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cmd.js b/bin/cmd.js index 0460d4b7..ed2db897 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -37,7 +37,7 @@ program console.log(stats.toString({ color: true })); var server = serve.listen(program.port || 9000, static, Number(program.timeout) || 10); stats.compilation.chunks.forEach(function(chunk) { - server.clearCache(chunk.name); + server.clearCache(chunk.name || chunk.id.toString()); }); }); });