mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +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
|
isWatchMode ? messages.startWatching : messages.compilationComplete
|
||||||
);
|
);
|
||||||
|
|
||||||
// Do not notify the CLI if the compilation failed
|
|
||||||
const stats = compilation.getStats();
|
const stats = compilation.getStats();
|
||||||
if (stats.hasErrors()) {
|
if (stats.hasErrors()) {
|
||||||
return;
|
env.verbose && console.log(`[${id}] Warn: Compilation had errors!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// logic taken from CleanWebpackPlugin
|
// logic taken from CleanWebpackPlugin
|
||||||
|
Reference in New Issue
Block a user