diff --git a/install/web.js b/install/web.js index 0bccdc1847..7630db15eb 100644 --- a/install/web.js +++ b/install/web.js @@ -223,12 +223,15 @@ function launch(req, res) { } function compileLess(callback) { - fs.readFile(path.join(__dirname, '../public/less/install.less'), function (err, style) { + var installSrc = path.join(__dirname, '../public/less/install.less'); + fs.readFile(installSrc, function (err, style) { if (err) { return winston.error('Unable to read LESS install file: ', err.stack); } - less.render(style.toString(), function (err, css) { + less.render(style.toString(), { + filename: path.resolve(installSrc), + }, function (err, css) { if (err) { return winston.error('Unable to compile LESS: ', err.stack); }