-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rootpath option doesn't work when url has variable #1821
Comments
This is also a problem when using bootstrap as less library since they're referencing their icons dynamically. |
That way it would not work anyway simply because |
Yep you're right! |
Btw., speaking of the initial issue report by @zuzusik. I've just tested this with v1.7.0,
and it compiles as expected to:
So I guess this can be closed (could it be just some OP mistake?). |
Closing as not reproducible (feel free to reopen if you have an example of not working |
Thx anyway 😄. |
Yep. But it still looks like ideally and eventually we will need three |
Why is using variables insufficient? |
Because we have to specify them :) And because we have to know we have to specify them (and/or use |
Well, the only reason why I'd use variables is if I wanted to provide a way to override the path (which is a common requirement for css frameworks like bootstrap). And in this case all overridable variables should be at once place. But I agree, it will surely come up from time to time again. |
I have following code
For this code rootpath option doesn't work, it gets compiled to
If I remove @{imgPath}, then everything is OK
Less version 1.6.1
The text was updated successfully, but these errors were encountered: