File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ For more information, see https://webpack.js.org/api/cli/.`);
251251const stdout = argv . silent
252252? {
253253write : ( ) => { }
254- } // eslint-disable-line
254+ } // eslint-disable-line
255255: process . stdout ;
256256
257257function ifArg ( name , fn , init ) {
@@ -488,13 +488,18 @@ For more information, see https://webpack.js.org/api/cli/.`);
488488}
489489compiler . watch ( watchOptions , compilerCallback ) ;
490490if ( outputOptions . infoVerbosity !== "none" ) console . error ( "\nwebpack is watching the files…\n" ) ;
491- if ( compiler . close ) compiler . close ( compilerCallback ) ;
492491} else {
493- compiler . run ( compilerCallback ) ;
494- if ( compiler . close ) compiler . close ( compilerCallback ) ;
492+ compiler . run ( ( err , stats ) => {
493+ if ( compiler . close ) {
494+ compiler . close ( err2 => {
495+ compilerCallback ( err || err2 , stats ) ;
496+ } ) ;
497+ } else {
498+ compilerCallback ( err , stats ) ;
499+ }
500+ } ) ;
495501}
496502}
497-
498503processOptions ( options ) ;
499504} ) ;
500505} ) ( ) ;
You can’t perform that action at this time.
0 commit comments