File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -134,13 +134,17 @@ const onSocketMessage = {
134
134
reloadApp ( options , status ) ;
135
135
} ,
136
136
// TODO: remove in v5 in favor of 'static-changed'
137
- 'content-changed' : function contentChanged ( ) {
138
- log . info ( 'Content base changed. Reloading...' ) ;
137
+ 'content-changed' : function contentChanged ( file ) {
138
+ log . info (
139
+ `${ file || 'Contents' } from static directory were changed. Reloading...`
140
+ ) ;
139
141
140
142
self . location . reload ( ) ;
141
143
} ,
142
- 'static-changed' : function staticChanged ( ) {
143
- log . info ( 'Contents from static directory were changed. Reloading...' ) ;
144
+ 'static-changed' : function staticChanged ( file ) {
145
+ log . info (
146
+ `${ file || 'Contents' } from static directory were changed. Reloading...`
147
+ ) ;
144
148
145
149
self . location . reload ( ) ;
146
150
} ,
Original file line number Diff line number Diff line change @@ -1117,7 +1117,7 @@ class Server {
1117
1117
// disabling refreshing on changing the content
1118
1118
if ( this . options . liveReload ) {
1119
1119
watcher . on ( 'change' , ( ) => {
1120
- this . sockWrite ( this . sockets , 'static-changed' ) ;
1120
+ this . sockWrite ( this . sockets , 'static-changed' , watchPath ) ;
1121
1121
} ) ;
1122
1122
}
1123
1123
You can’t perform that action at this time.
0 commit comments