Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ module.exports = function(root, opts) {

// when a file is modifed tell all clients to reload it
watcher.on('change', function(file) {
fn.reload(urlsByFile[file])
setTimeout(function(){
fn.reload(urlsByFile[file])
}, opts.delay || 0);
})

// build a RegExp to match all watched file extensions
Expand Down