Small module to interface with the parent browser-refresh process to control reloading of files.
npm install browser-refresh-clientbrowser-refresh-client
======================
Small module that allows the current child process launched by browser-refresh to control the parent browser-refresh process. If the process was not launched by the browser-refresh launcher then operations will be a no-op.
``bash`
npm install browser-refresh-client --save
`javascript`
require('browser-refresh-client').isBrowserRefreshEnabled();
`javascript``
require('browser-refresh-client')
.enableSpecialReload('.foo .bar')
.onFileModified(function(path) {
// Handle the modification of either a *.foo file or
// a *.bar file...
});