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

Allow setting of SASS_BINARY_DIR without setting explicit binary name #2119

Merged
merged 2 commits into from
Mar 10, 2018
Merged

Allow setting of SASS_BINARY_DIR without setting explicit binary name #2119

merged 2 commits into from
Mar 10, 2018

Conversation

kausters
Copy link
Contributor

@kausters kausters commented Oct 21, 2017

I'm at a company with people developing on multiple platforms behind a strict firewall. I want to host precompiled SASS bindings locally so setting SASS_BINARY_URL doesn't work for me. However I do not want to use SASS_BINARY_PATH because it requires giving explicit file name of the binding which doesn't work when some developers are on Macs, some on WIndows, and the whole project is compiled on Linux for production — it is quite a pain to set the full path as required in each environment, and as far as I know impossible within a static .npmrc file (.npmrc supports expansion of environment variables but I'd still need to set the SASS version, OS arch & Node Modules version).

Introducing: SASS_BINARY_DIR! Enables setting a directory where the binaries are stored but uses the default file name which SASS figures out by itself.

Also updated the getBinaryPath to use the new getBinaryDir.

@xzyfer
Copy link
Contributor

xzyfer commented Oct 22, 2017 via email

@kausters
Copy link
Contributor Author

Thanks! I mostly just reused the code for SASS_BINARY_PATH, let me know if I should change anything.

@xzyfer
Copy link
Contributor

xzyfer commented Oct 22, 2017 via email

@xzyfer
Copy link
Contributor

xzyfer commented Mar 10, 2018

Thanks for you work :) This will land in 4.8.0

@xzyfer xzyfer self-assigned this Mar 10, 2018
@xzyfer xzyfer merged commit 3331891 into sass:master Mar 10, 2018
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.

2 participants