Answer the question
In order to leave comments, you need to log in
How are paths compiled from scss to css?
In general, in my project, css and scss are in different places, and when uploading to github, the pictures are reset. They are specified in relative paths from the scss file to some image, but when compiling, the paths do NOT change to match the location of the css file. In general, the question is the following: why does a project with all the pictures start on my local server, but not on the github?
Answer the question
In order to leave comments, you need to log in
Sass doesn't know anything about your image paths, it's up to you to specify the correct paths. Paths should be relative to the CSS file , not SCSS, since obviously they will only be used when the CSS file is loaded into the browser.
Regarding "runs locally": make sure your paths don't end up above the site's document root. if so, then they are obviously inaccessible from the outside.
I looked at one of my projects. My scss directory lies inside the css directory, relative paths are specified from the parent css directory. You probably have css and scss directories in the same directory, and therefore it seems that the paths are relative from scss. Exit - arrange the directories in the same way where you have them dumped.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question