How to make SASS relative paths in your output

SASS produces the following code:

/* line 22, B:/home/game/www/sass/field/src/globals.sass */ .small-reports .wrap { padding: 2px 0 0; } 

Does he have an option to save debugging information, but so that it looks like this:

 /* line 22, /sass/field/src/globals.sass */ .small-reports .wrap { padding: 2px 0 0; } 

Different developers have different paths in their environment, while it’s convenient to have the provided file in Git.

+2
source share
1 answer

If you use Compass in addition to SASS, you have the option to configure whether the path is relative or absolute using the relative_assets property, which takes a boolean value.

See: http://compass-style.org/help/documentation/configuration-reference/

+1
source

Source: https://habr.com/ru/post/1497389/


All Articles