@@ -443,6 +443,8 @@ function startDevServer(wpOpt, options) {
443
443
444
444
function reportReadiness ( uri , options ) {
445
445
const useColor = argv . color ;
446
+ const contentBase = Array . isArray ( options . contentBase ) ? options . contentBase . join ( ", " ) : options . contentBase ;
447
+
446
448
if ( ! options . quiet ) {
447
449
let startSentence = `Project is running at ${ colorInfo ( useColor , uri ) } `
448
450
if ( options . socket ) {
@@ -451,19 +453,21 @@ function reportReadiness(uri, options) {
451
453
console . log ( ( argv [ "progress" ] ? "\n" : "" ) + startSentence ) ;
452
454
453
455
console . log ( `webpack output is served from ${ colorInfo ( useColor , options . publicPath ) } ` ) ;
456
+
457
+ if ( contentBase )
458
+ console . log ( `Content not from webpack is served from ${ colorInfo ( useColor , contentBase ) } ` ) ;
459
+
460
+ if ( options . historyApiFallback )
461
+ console . log ( `404s will fallback to ${ colorInfo ( useColor , options . historyApiFallback . index || "/index.html" ) } ` ) ;
462
+
463
+ if ( options . bonjour )
464
+ console . log ( "Broadcasting \"http\" with subtype of \"webpack\" via ZeroConf DNS (Bonjour)" ) ;
454
465
}
455
- const contentBase = Array . isArray ( options . contentBase ) ? options . contentBase . join ( ", " ) : options . contentBase ;
456
- if ( contentBase )
457
- console . log ( `Content not from webpack is served from ${ colorInfo ( useColor , contentBase ) } ` ) ;
458
- if ( options . historyApiFallback )
459
- console . log ( `404s will fallback to ${ colorInfo ( useColor , options . historyApiFallback . index || "/index.html" ) } ` ) ;
460
466
if ( options . open ) {
461
467
open ( uri + options . openPage ) . catch ( function ( ) {
462
468
console . log ( "Unable to open browser. If you are running in a headless environment, please do not use the open flag." ) ;
463
469
} ) ;
464
470
}
465
- if ( options . bonjour )
466
- console . log ( "Broadcasting \"http\" with subtype of \"webpack\" via ZeroConf DNS (Bonjour)" ) ;
467
471
}
468
472
469
473
function broadcastZeroconf ( options ) {
0 commit comments