mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
fix(webpack): notify CLI even if there are compilation errors (#10141)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user