Skip to content

Commit

Permalink
Merge pull request broccolijs#119 from rjackson/allow-custom-watcher-…
Browse files Browse the repository at this point in the history
…for-serve

Allow custom watcher for serve command.
  • Loading branch information
joliss committed Apr 25, 2014
2 parents 867e61b + 292bbf1 commit 12db9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function serve (builder, options) {

console.log('Serving on http://' + options.host + ':' + options.port + '\n')

var watcher = new Watcher(builder)
var watcher = options.watcher || new Watcher(builder)

var app = connect().use(middleware(watcher))

Expand Down

0 comments on commit 12db9be

Please sign in to comment.