{"action":"created","issue":{"url":"https://api.github.com/repos/less/less.js/issues/2084","repository_url":"https://api.github.com/repos/less/less.js","labels_url":"https://api.github.com/repos/less/less.js/issues/2084/labels{/name}","comments_url":"https://api.github.com/repos/less/less.js/issues/2084/comments","events_url":"https://api.github.com/repos/less/less.js/issues/2084/events","html_url":"https://github.com/less/less.js/issues/2084","id":36916341,"number":2084,"title":"Custom-output-path-aware relative-URLs","user":{"login":"am11","id":3840695,"avatar_url":"https://avatars.githubusercontent.com/u/3840695?v=3","gravatar_id":"","url":"https://api.github.com/users/am11","html_url":"https://github.com/am11","followers_url":"https://api.github.com/users/am11/followers","following_url":"https://api.github.com/users/am11/following{/other_user}","gists_url":"https://api.github.com/users/am11/gists{/gist_id}","starred_url":"https://api.github.com/users/am11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/am11/subscriptions","organizations_url":"https://api.github.com/users/am11/orgs","repos_url":"https://api.github.com/users/am11/repos","events_url":"https://api.github.com/users/am11/events{/privacy}","received_events_url":"https://api.github.com/users/am11/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/less/less.js/labels/Consider%20Closing","name":"Consider Closing","color":"444444"},{"url":"https://api.github.com/repos/less/less.js/labels/Feature%20Request","name":"Feature Request","color":"fe9400"},{"url":"https://api.github.com/repos/less/less.js/labels/NeedsInfo","name":"NeedsInfo","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2014-07-01T17:53:34Z","updated_at":"2016-08-29T01:22:51Z","closed_at":"2014-09-22T19:32:09Z","body":"Please change `toCSS()` so it takes custom output file path and make it produce the output with correct relative `url()`s.\r\n\r\nCurrently its producing urls relative to the source less file, whereas it should incorporate the intended location of css to be generated."},"comment":{"url":"https://api.github.com/repos/less/less.js/issues/comments/243013000","html_url":"https://github.com/less/less.js/issues/2084#issuecomment-243013000","issue_url":"https://api.github.com/repos/less/less.js/issues/2084","id":243013000,"user":{"login":"am11","id":3840695,"avatar_url":"https://avatars.githubusercontent.com/u/3840695?v=3","gravatar_id":"","url":"https://api.github.com/users/am11","html_url":"https://github.com/am11","followers_url":"https://api.github.com/users/am11/followers","following_url":"https://api.github.com/users/am11/following{/other_user}","gists_url":"https://api.github.com/users/am11/gists{/gist_id}","starred_url":"https://api.github.com/users/am11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/am11/subscriptions","organizations_url":"https://api.github.com/users/am11/orgs","repos_url":"https://api.github.com/users/am11/repos","events_url":"https://api.github.com/users/am11/events{/privacy}","received_events_url":"https://api.github.com/users/am11/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T01:22:51Z","updated_at":"2016-08-29T01:22:51Z","body":"@stevenvachon, I ended up using via API like this:\r\n\r\n```javascript\r\nrootpath: path.dirname(\r\n  path.relative(\r\n    path.dirname(absoluteTargetFileName),\r\n    absoluteSourceFileName)\r\n  ).replace(/\\\\/g, '/') + \"/\",\r\n```\r\n\r\nFull story: https://github.com/madskristensen/WebEssentials2013/blob/master/EditorExtensions/Resources/server/services/srv-less.js\r\n\r\nI guess this is also applicable in gulpfile. If not then please share that file, might help spotting the issue. :)"}}
{"actor":{"display_login":"am11"}}