Open jdosstech opened 10 years ago
Locally I have changed line 22 of Less/Parser.php from true to false which makes more sense form a CLI arg point of view. However I do understand that it was done for what is probably the most common situation where relative url paths are always wanted.
This and the rootpath argument need to be coded differently in the lessc main file. rootpath arg is currently not handled at all.
I have url() vallues for attributes like:
background: url(../../../../../../../frameworks/prodea/v2/assets/images/profile_dropdown.png) no-repeat right #2f2f2f;
from a file included like:
@import "../../../../../../../frameworks/prodea/v2/assets/rosweb/less/rosweb.less";
When I attempt to compile like this:
lessc --rootpath="ttt" initialize_css.less
the relative paths don't change in the url() values.
This is in the lessc 1.7.0.2 version.
I have tried with the -ru option included as well just for kicks.
Did I miss something about the intention of the -rp switch or in my usage?