{"action":"created","issue":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/263","repository_url":"https://api.github.com/repos/jakubpawlowicz/clean-css","labels_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/263/comments","events_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/263/events","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/263","id":29951203,"number":263,"title":"How to get relativeTo option working with CSS files in different paths","user":{"login":"cristiangrojas","id":923182,"avatar_url":"https://avatars.githubusercontent.com/u/923182?v=3","gravatar_id":"","url":"https://api.github.com/users/cristiangrojas","html_url":"https://github.com/cristiangrojas","followers_url":"https://api.github.com/users/cristiangrojas/followers","following_url":"https://api.github.com/users/cristiangrojas/following{/other_user}","gists_url":"https://api.github.com/users/cristiangrojas/gists{/gist_id}","starred_url":"https://api.github.com/users/cristiangrojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristiangrojas/subscriptions","organizations_url":"https://api.github.com/users/cristiangrojas/orgs","repos_url":"https://api.github.com/users/cristiangrojas/repos","events_url":"https://api.github.com/users/cristiangrojas/events{/privacy}","received_events_url":"https://api.github.com/users/cristiangrojas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":40,"created_at":"2014-03-22T01:01:18Z","updated_at":"2016-10-05T21:19:36Z","closed_at":"2015-04-18T00:15:13Z","body":"Imagine the following folder structure for a project inside the static_files folder:\r\n\r\n|-- css\r\n    |---- style1.css\r\n    |---- plugins\r\n        |------ plugin1.css\r\n        |------ plugin2.css\r\n        |------ plugin3.css\r\n    |---- whatever_styles\r\n        |------ stylesheet1.css\r\n        |------ stylesheet2.css\r\n        |------ stylesheet3.css\r\n|-- js\r\n    |---- libs\r\n        |------ jquery_plugin\r\n            |-------- jquery_plugin.css\r\n            |-------- jquery_plugin.js\r\n|-- images\r\n    |---- image1.jpg\r\n    |---- image2.jpg\r\n    |---- image3.jpg\r\n\r\nAs you can see there are many css files distributed on many folders.\r\n\r\nLet's suppose that each stylesheet above refers to one of the images in the \"images\" folder as a background-image for the body or whatever you want.\r\n\r\nThe path to the image should be different depending of the file where this code is.\r\n\r\nEverything ok at this point but... you don't want to have a lot of files so you want to compress them in only one file with clean-css\r\n\r\nHow should I use the relativeTo option if I want to put my compressed .css file inside a \"dist\" folder that will be a sibling of the \"css\", \"images\" and \"js\" folders?\r\n\r\nI've tried to do it but without good results and I got confused.\r\n\r\nThanks for your support"},"comment":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/comments/251802845","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/263#issuecomment-251802845","issue_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/263","id":251802845,"user":{"login":"afinnell","id":829255,"avatar_url":"https://avatars.githubusercontent.com/u/829255?v=3","gravatar_id":"","url":"https://api.github.com/users/afinnell","html_url":"https://github.com/afinnell","followers_url":"https://api.github.com/users/afinnell/followers","following_url":"https://api.github.com/users/afinnell/following{/other_user}","gists_url":"https://api.github.com/users/afinnell/gists{/gist_id}","starred_url":"https://api.github.com/users/afinnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afinnell/subscriptions","organizations_url":"https://api.github.com/users/afinnell/orgs","repos_url":"https://api.github.com/users/afinnell/repos","events_url":"https://api.github.com/users/afinnell/events{/privacy}","received_events_url":"https://api.github.com/users/afinnell/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T21:19:36Z","updated_at":"2016-10-05T21:19:36Z","body":"I had to give up on this module and use the similarly named module called gulp-clean-css. It worked perfectly. "}}
{"actor":{"display_login":"afinnell"}}