Permalink
Browse files

refine express(1) generated stylus middleware

  • Loading branch information...
tj committed May 1, 2012
1 parent 53f1ffb commit 3dc88b2c0c0ed218aa4ca047338c58a6963da96a
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/express
View
@@ -284,7 +284,7 @@ function createApplicationAt(path) {
app = app.replace('{css}', eol + ' app.use(require(\'less-middleware\')({ src: __dirname + \'/public\' }));');
break;
case 'stylus':
- app = app.replace('{css}', eol + ' app.use(require(\'stylus\').middleware({ src: __dirname + \'/public\' }));');
+ app = app.replace('{css}', eol + ' app.use(require(\'stylus\').middleware(__dirname + \'/public\'));');
break;
default:
app = app.replace('{css}', '');

0 comments on commit 3dc88b2

Please sign in to comment.