-
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
Support for site root-relative paths with the data-uri function? #1634
Comments
The problem is that the LESS command-line compiler doesn't know what the site root is. |
Is there a way to pass this to the compiler as an argument or something like that? |
There is a |
Any movement on this front? :) |
@SLaks you can specify include paths. Could resolve relative to any of those, like imports. |
Fixed by previous commit. Data uri function now uses paths specified through |
As far as I can tell, less.js doesn't currently support the use of site root-relative paths (e.g., "/images/image.png") within LESS files with the data-uri function, which requires access to the file to base64-encode it. (This problem may apply to other areas as well.)
There are currently no tests for the data-uri function that use a site root-relative path, though I understand this might be due to practical reasons.
The text was updated successfully, but these errors were encountered: