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);
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);