fix(webpack): notify CLI even if there are compilation errors (#10141)

This commit is contained in:
Igor Randjelovic
2023-03-28 15:35:46 +02:00
committed by GitHub
parent 671603ab4b
commit 6059984555

View File

@ -49,10 +49,9 @@ export class WatchStatePlugin {
isWatchMode ? messages.startWatching : messages.compilationComplete
);
// Do not notify the CLI if the compilation failed
const stats = compilation.getStats();
if (stats.hasErrors()) {
return;
env.verbose && console.log(`[${id}] Warn: Compilation had errors!`);
}
// logic taken from CleanWebpackPlugin