Commit 78ac14fb by Marcin Cieslak

Provide "nodeSassConfig" hardcoded defaults

Some private npm repositiories seem not to carry
custom package.json properties around.

Fixes: https://github.com/sass/node-sass/issues/1030
parent 9b6c9a2c
......@@ -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('/');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment