Skip to content

Commit b724423

Browse files
committed
clearCache fallbacks to chunk.id if chunk.name is null
1 parent 2ea4d3c commit b724423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ program
3737
console.log(stats.toString({ color: true }));
3838
var server = serve.listen(program.port || 9000, static, Number(program.timeout) || 10);
3939
stats.compilation.chunks.forEach(function(chunk) {
40-
server.clearCache(chunk.name);
40+
server.clearCache(chunk.name || chunk.id.toString());
4141
});
4242
});
4343
});

0 commit comments

Comments
 (0)