Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/public/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.css
6 changes: 2 additions & 4 deletions lib/middleware.js
Original file line number Diff line number Diff line change
@@ -45,10 +45,8 @@ module.exports = function(options){
if ('GET' != req.method && 'HEAD' != req.method) return next();
var path = url.parse(req.url).pathname;
if (/\.css$/.test(path)) {
var css = path
, stylus = basename(path, '.css') + '.styl'
, cssPath = join(src, css)
, stylusPath = join(dest, stylus);
var cssPath = join(dest, path)
, stylusPath = join(src, basename(path, '.css') + '.styl');

// Ignore ENOENT to fall through as 404
function error(err) {

0 comments on commit e7707c1

Please sign in to comment.