Skip to content

Ability to adjust relative url() paths at compile time #790

@oasit

Description

@oasit

Is there any way I can adjust relative url() values or prefix them with an absolute URL?

After compiling the SCSS file I have to move it to another directory. Therefore relative url() values point to the wrong places.
I would like to prefix the relative URLs with the absolute URL of the source file. Is this possible?

/styles/test.scss:
background-image: url(../images/bg.png);

After compiling the final CSS file is stored in
/temp/css/test.css

I'd need to adjust the relative URL:
/temp/css/test.css:
background-image: url(/styles/../images/bg.png);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions