-
Notifications
You must be signed in to change notification settings - Fork 83
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
Does not change relative references to background-image in stylesheet. #88
Comments
Can you post your gulp task and folder structure around these files. Also how is the image referenced? |
Yup! https://gist.github.com/mikelittman/1ff88f2aabc4508ff7ca Sorry, in regards to image reference, here is the area of the LESS stylesheet: .faded{
z-index: 9;
background: url("@{relative-img-path}/assets/img/root/tile-one/Homepage_Buildings_Horizontal_Tile.png") repeat-x;
height: 20px;
position: absolute;
bottom: 9px;
left: 0;
width: 100%;
} Which compiles down to: .content-container .content-box.splash .faded {
z-index: 9;
background: url("../../assets/img/root/tile-one/Homepage_Buildings_Horizontal_Tile.png") repeat-x;
height: 20px;
position: absolute;
bottom: 9px;
left: 0;
width: 100%;
} |
👍 Talking about LESS is just noise in this discussion. If you have the following structure:
And you reference The reference won't be replaced. The resulting Just for a quick test, if you remove the relative path I have looked at the options and can't find something where I could override the search and replace function. Any ideas? |
@mikegleasonjr |
@island205 Hello and thanks for your interest in this issue... But I don't quite understand your comment (sorry). Do you meant to copy paste something else? Like your case in your javascript file in your issue (2nd point). I ended up overriding |
What i mean: If you have the following structure:
And you reference The reference will be replaced. |
I'm afraid it's not... On Wed, Dec 9, 2015, 19:15 Zhi Cun [email protected] wrote:
|
I spyed the function console.log(reference.path)
console.log(regExps) Which output something like:
And if I take this regex and try to match it with what's in the CSS we have (node REPL):
So no, the reference is not replaced in the CSS. |
It look like a bug, i will try to figoure out it. |
I have a LESS stylesheet that I compile and minify in a subsequent gulp task.
It appears that revision is running on the file as there is a changed filename in my build target, but the reference stays the same.
Does this plugin not support relative image references?
Here is my image path ../../assets/img/root/tile-one/Homepage_Buildings_Horizontal_Tile.png
The text was updated successfully, but these errors were encountered: