Skip to content

Commit b34d4a0

Browse files
committed
add --poll to address issue #87
1 parent 9ecb967 commit b34d4a0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bin/node-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var devArgs = process.argv.slice(2, scriptIndex)
1717

1818
var nodeArgs = []
1919
var opts = minimist(devArgs, {
20-
boolean: ['all-deps', 'no-deps', 'dedupe'],
20+
boolean: ['all-deps', 'no-deps', 'dedupe', 'poll'],
2121
unknown: function(arg) {
2222
nodeArgs.push(arg)
2323
}

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = function(script, scriptArgs, nodeArgs, opts) {
3131
// Run ./dedupe.js as preload script
3232
if (cfg.dedupe) process.env.NODE_DEV_PRELOAD = __dirname + '/dedupe'
3333

34-
var watcher = filewatcher()
34+
var watcher = filewatcher({ forcePolling: opts.poll })
3535

3636
watcher.on('change', function(file) {
3737
if (cfg.clear) process.stdout.write('\033[2J\033[H')

0 commit comments

Comments
 (0)