File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ module.exports = function(bs) {
104104 . fileChanges ( coreNamespacedWatchers , bs . options )
105105 . subscribe ( function ( x ) {
106106 if ( x . type === "reload" ) {
107- bs . events . emit ( "browser:reload" ) ;
107+ bs . events . emit ( "browser:reload" , x ) ;
108108 }
109109 if ( x . type === "inject" ) {
110110 x . files . forEach ( function ( data ) {
Original file line number Diff line number Diff line change @@ -67,8 +67,11 @@ module.exports.callbacks = {
6767 /**
6868 *
6969 */
70- "browser:reload" : function ( bs ) {
70+ "browser:reload" : function ( bs , data = { } ) {
7171 if ( canLogFileChange ( bs ) ) {
72+ if ( data . files && data . files . length > 1 ) {
73+ return logger . info ( `{cyan:Reloading Browsers... (buffered ${ data . files . length } events)` ) ;
74+ }
7275 logger . info ( "{cyan:Reloading Browsers..." ) ;
7376 }
7477 } ,
You can’t perform that action at this time.
0 commit comments