Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
This is the path from the output css file, not from the sass file in which it is written.
Feel the difference?
sass still doesn't have a built-in file path resolver, unlike other preprocessors.
That is, the paths to the files are not processed in any way, and are sent to the output as it is.
This is problem.
For example, you have a structure like this:
dist/
css/
style.css
images/
image.png
src/
images/
image.png
sass/
blocks/
logo.scss
styles.scss
.logo { background: url(../images/image.png); }
.logo { background: url(../../images/image.png); }
.logo { background: url(/images/image.png); }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question