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

Commit

Permalink
Provide "nodeSassConfig" hardcoded defaults
Browse files Browse the repository at this point in the history
Some private npm repositiories seem not to carry
custom package.json properties around.

Fixes: #1030
  • Loading branch information
saper committed Jul 11, 2015
1 parent 9b6c9a2 commit 78ac14f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ function getBinaryName() {
function getBinaryUrl() {
var site = flags['--sass-binary-site'] ||
process.env.SASS_BINARY_SITE ||
pkg.nodeSassConfig.binarySite;
(pkg.nodeSassConfig && pkg.nodeSassConfig.binarySite) ||
'https://github.com/sass/node-sass/releases/download';

return [site, 'v' + pkg.version, sass.binaryName].join('/');
}

Expand Down

0 comments on commit 78ac14f

Please sign in to comment.