File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function build(options: ProgramOptions | undefined): void {
57
57
if ( status === 'success' ) {
58
58
spinner . succeed ( `${ wpackLogoSmall } build successful.` ) ;
59
59
} else {
60
- spinner . warn ( `${ wpackLogoSmall } build warnings.` ) ;
60
+ spinner . warn ( `${ wpackLogoSmall } built with warnings.` ) ;
61
61
}
62
62
console . log ( '' ) ;
63
63
console . log (
Original file line number Diff line number Diff line change @@ -37,27 +37,32 @@ export class Build {
37
37
compiler . run ( ( err , stats ) => {
38
38
const raw = stats . toJson ( 'verbose' ) ;
39
39
const messages = formatWebpackMessages ( raw ) ;
40
+ const outputLog = stats . toString ( {
41
+ colors : true ,
42
+ assets : true ,
43
+ chunks : false ,
44
+ entrypoints : false ,
45
+ hash : false ,
46
+ version : false ,
47
+ modules : false ,
48
+ builtAt : false ,
49
+ timings : false ,
50
+ } ) ;
51
+
40
52
if ( ! messages . errors . length && ! messages . warnings . length ) {
41
53
// All good
42
54
resolve ( {
43
55
status : 'success' ,
44
- log : stats . toString ( {
45
- colors : true ,
46
- assets : true ,
47
- chunks : false ,
48
- entrypoints : false ,
49
- hash : false ,
50
- version : false ,
51
- modules : false ,
52
- builtAt : false ,
53
- timings : false ,
54
- } ) ,
56
+ log : outputLog ,
55
57
} ) ;
56
58
}
57
59
if ( messages . errors . length ) {
58
60
reject ( messages . errors . join ( '\n' ) ) ;
59
61
}
60
- resolve ( { status : 'warn' , log : messages . warnings . join ( '\n' ) } ) ;
62
+ resolve ( {
63
+ status : 'warn' ,
64
+ log : `${ outputLog } \n\n${ messages . warnings . join ( '\n' ) } ` ,
65
+ } ) ;
61
66
} ) ;
62
67
} ) ;
63
68
}
You can’t perform that action at this time.
0 commit comments