Skip to content

Commit

Permalink
clearCache fallbacks to chunk.id if chunk.name is null
Browse files Browse the repository at this point in the history
  • Loading branch information
svengau committed Apr 17, 2019
1 parent 2ea4d3c commit b724423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});
});
});
Expand Down

0 comments on commit b724423

Please sign in to comment.