Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Jul 12, 2014
1 parent b046159 commit fd4ac06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![Build Status](https://travis-ci.org/wearefractal/lute.png?branch=master)](https://travis-ci.org/wearefractal/lute)

[![NPM version](https://badge.fury.io/js/lute.png)](https://badge.fury.io/js/lute)

## Information
Expand All @@ -14,7 +12,7 @@
</tr>
<tr>
<td>Node Version</td>
<td>>= 0.4</td>
<td>>= 0.10</td>
</tr>
</table>

Expand Down
4 changes: 2 additions & 2 deletions lib/serve/createServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var http = require('http');
var pf = require('portfinder');
var rstream = require('replacestream');
var send = require('send');
var openIt = require('open');
var openIt = require('open');

module.exports = function (port, lrPort, open, next) {
var root = path.resolve(process.cwd());
Expand Down Expand Up @@ -32,7 +32,7 @@ module.exports = function (port, lrPort, open, next) {
});

// if html, inject lr
if (path.match(/htm(l)?$/)) {
if (path.extname(path).match(/\.htm(l)?$/)) {
stream
.pipe(rstream('</body>', getLivereloadTag(lrPort)+'</body>'))
.pipe(res);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tiny-lr": "^0.0.9"
},
"engines": {
"node": ">= 0.4.0"
"node": ">= 0.10.0"
},
"bin": {
"lute": "./bin/lute.js"
Expand Down

0 comments on commit fd4ac06

Please sign in to comment.