-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: improve message for static content changes #3289
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3289 +/- ##
==========================================
+ Coverage 95.70% 95.71% +0.01%
==========================================
Files 34 34
Lines 1280 1285 +5
Branches 369 371 +2
==========================================
+ Hits 1225 1230 +5
Misses 51 51
Partials 4 4
Continue to review full report at Codecov.
|
client-src/index.js
Outdated
}, | ||
'static-changed': function staticChanged(file) { | ||
log.info( | ||
`${file || 'Content'} from static directory was changed. Reloading...` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use ${file ?
"${file}" : 'Content'} from static directory was changed. Reloading...
? Better to use "
for special words/paths/names/etc, it's much better for reading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated 👍🏻
For Bugs and Features; did you add new tests?
Yes
Motivation / Use-Case
Improve logging.
Breaking Changes
No
Additional Info
None