From 09b578522f9f621b899ed3ce3eba821fc9a60b20 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sun, 1 Sep 2013 15:21:28 -0400 Subject: [PATCH] added prefic to less middleware --- src/webserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webserver.js b/src/webserver.js index 4e072787b8..d802929f53 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -58,7 +58,7 @@ var express = require('express'), // Middlewares app.use(express.favicon(path.join(__dirname, '../', 'public', 'favicon.ico'))); - app.use(require('less-middleware')({ src: path.join(__dirname, '../', 'public') })); + app.use(require('less-middleware')({ src: path.join(__dirname, '../', 'public'), prefix:nconf.get('relative_path') })); app.use(nconf.get('relative_path'), express.static(path.join(__dirname, '../', 'public'))); app.use(express.bodyParser()); // Puts POST vars in request.body app.use(express.cookieParser()); // If you want to parse cookies (res.cookies)