File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -527,6 +527,7 @@ var Project = function () {
527
527
statsInfo . errors . map ( function ( err ) {
528
528
error ( '[Bundle Error]: ' + err . red + '\n' ) ;
529
529
} ) ;
530
+ process . exit ( 1 ) ;
530
531
}
531
532
if ( statsInfo . warnings . length > 0 ) {
532
533
statsInfo . warnings . map ( function ( warning ) {
Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ class Project {
470
470
spinner . text = `[Minify] ${ assetsInfo . length -
471
471
processToRun } /${ assetsInfo . length } assets`;
472
472
473
- if ( processToRun === 0 ) {
473
+ if ( processToRun === 0 ) {
474
474
cc . exit ( ) ;
475
475
spinner . stop ( ) ;
476
476
@@ -517,6 +517,7 @@ class Project {
517
517
statsInfo . errors . map ( err => {
518
518
error ( '[Bundle Error]: ' + err . red + '\n' ) ;
519
519
} ) ;
520
+ process . exit ( 1 ) ;
520
521
}
521
522
if ( statsInfo . warnings . length > 0 ) {
522
523
statsInfo . warnings . map ( warning => {
You can’t perform that action at this time.
0 commit comments