Skip to content

Commit

Permalink
fix livereload
Browse files Browse the repository at this point in the history
  • Loading branch information
avevlad committed Feb 12, 2014
1 parent c40c6bd commit 7b2a533
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ module.exports = {
}
return function () {
var middleware = o.middleware ? o.middleware.call(this, connect, o) : [];
o.root.forEach(function (path) {
middleware.push(connect.static(path));
});
if (o.livereload) {
middleware.push(liveReload({port: o.livereload.port}));
util.log(util.colors.green('Connect LiveReload on ' + o.livereload.port + ' port'));
}
o.root.forEach(function (path) {
middleware.push(connect.static(path));
});
var app = connect.apply(null, middleware);
var server = http.createServer(app);
server
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gulp-connect",
"version": "0.5.0",
"version": "0.6.0",
"description": "Gulp plugin connect to server, LiveReload and opening browser",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 7b2a533

Please sign in to comment.