Skip to content

Commit e7707c1

Browse files
committed
Fixed dest option
1 parent 0a41469 commit e7707c1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/public/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.css

lib/middleware.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ module.exports = function(options){
4545
if ('GET' != req.method && 'HEAD' != req.method) return next();
4646
var path = url.parse(req.url).pathname;
4747
if (/\.css$/.test(path)) {
48-
var css = path
49-
, stylus = basename(path, '.css') + '.styl'
50-
, cssPath = join(src, css)
51-
, stylusPath = join(dest, stylus);
48+
var cssPath = join(dest, path)
49+
, stylusPath = join(src, basename(path, '.css') + '.styl');
5250

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

0 commit comments

Comments
 (0)