Skip to content

data-uri function uses path of data-uri call, not the string with the path to the file in. #2629

@lukeapage

Description

@lukeapage

from #2541 but I've seen this in projects

// mixins.less
.background(@image) {
    background-image: data-uri(@image);
}
// app/content/button.less
button {
  .background("images/btn.jpg");
}

I would expect the image to be fetched from app/content/images/btn.jpg but it is fetched from images/btn.jpg.

I welcome feedback on whether this is a breaking change (warranting a major up) or a bug fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions