Pavel Koryagin
Pavel Koryagin

Reputation: 1481

How to make SASS put relative paths in its 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 it have a setting to keep the debug info, but make it look like this?:

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

Different developers have different paths in their environments, while it is handy to have the resulted file in Git.

Upvotes: 2

Views: 1861

Answers (1)

mcabrams
mcabrams

Reputation: 686

If you use Compass in addition to SASS you have the ability to configure whether the path is relative or absolute with the relative_assets property which accepts a boolean value.

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

Upvotes: 1

Related Questions