Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Use Sass.load_paths instead of SASS_PATH env #612

Closed
wants to merge 1 commit into from

Conversation

dgalarza
Copy link
Contributor

@dgalarza dgalarza commented Jun 23, 2017

#The SASS_PATH environment variable is not intended to be set by another
library but rather by consumers of Sass. Since the environment variable
is only read in once at the first time load_paths is called.

This was causing an error where, if a user had another gem such as
bootstrap-sass and it was being loaded before neat was, the
modifications to SASS_PATH we were making were never read in, so the
neat files would never be found.

See https://github.com/sass/sass/blob/1b628f03b9361fa6047097c9fd0d01b21247b8f3/lib/sass.rb#L20-L43

The SASS_PATH environment variable is not intended to be set by another
library but rather by consumers of Sass. Since the environment variable
is only read in once at the first time `load_paths` is called.

This was causing an error where, if a user had another gem such as
`bootstrap-sass` and it was being loaded before `neat` was, the
modifications to `SASS_PATH` we were making were never read in, so the
neat files would never be found.

See https://github.com/sass/sass/blob/1b628f03b9361fa6047097c9fd0d01b21247b8f3/lib/sass.rb#L20-L43
@tysongach
Copy link
Contributor

Oh, looks like #595 has this fixed, as well. Closing in favor of that since it was already open.

@tysongach tysongach closed this Jun 26, 2017
@dgalarza dgalarza deleted the dg-sass-load-paths branch June 26, 2017 14:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants