diff --git a/packager.js b/packager.js index ad47d1d9..e2a32f2c 100644 --- a/packager.js +++ b/packager.js @@ -10,6 +10,8 @@ var fs = require('fs'); var path = require('path'); +var exec = require('child_process').exec; +var http = require('http'); if (!fs.existsSync(path.resolve(__dirname, '..', 'node_modules'))) { console.log( @@ -21,11 +23,9 @@ if (!fs.existsSync(path.resolve(__dirname, '..', 'node_modules'))) { process.exit(); } -var exec = require('child_process').exec; +var connect = require('connect'); var ReactPackager = require('./react-packager'); var blacklist = require('./blacklist.js'); -var connect = require('connect'); -var http = require('http'); var launchEditor = require('./launchEditor.js'); var parseCommandLine = require('./parseCommandLine.js'); var webSocketProxy = require('./webSocketProxy.js'); diff --git a/react-packager/src/FileWatcher/index.js b/react-packager/src/FileWatcher/index.js index 6f451b48..9af96c14 100644 --- a/react-packager/src/FileWatcher/index.js +++ b/react-packager/src/FileWatcher/index.js @@ -64,7 +64,10 @@ FileWatcher.prototype.end = function() { function createWatcher(rootConfig) { return detectingWatcherClass.then(function(Watcher) { - var watcher = new Watcher(rootConfig.dir, rootConfig.globs); + var watcher = new Watcher(rootConfig.dir, { + glob: rootConfig.globs, + dot: false, + }); return new Promise(function(resolve, reject) { var rejectTimeout = setTimeout(function() {