Skip to content

Commit

Permalink
srv-less: Adds the missing rootpath option.
Browse files Browse the repository at this point in the history
This is for Less compiler can resolve the relative path.
I somehow forgot the incorporate this bit.. 😞

Related discussion: less/less.js#2084
Fixes #1922.
  • Loading branch information
am11 committed Jul 27, 2015
1 parent 96d3779 commit 8410884
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions EditorExtensions/Resources/server/services/srv-less.js
Expand Up @@ -32,6 +32,7 @@ var handleLess = function (writer, params) {
filename: params.sourceFileName,
paths: [sourceDir],
relativeUrls: params.relativeUrls !== undefined,
rootpath: path.dirname(path.relative(path.dirname(params.targetFileName), params.sourceFileName)).replace(/\\/g, '/') + "/",
sourceMap: {
sourceMapFullFilename: mapFileName,
sourceMapURL: params.sourceMapURL !== undefined ? path.basename(mapFileName) : null,
Expand Down

0 comments on commit 8410884

Please sign in to comment.