1.1.1 • Published 4 years ago

@wfh/vendor-binary v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

You should not get binaries by installing this package, but by clone the whole repo. We don't want every version of binary files go to npm registry.

node-sass

file name https://github.com/sass/node-sass/blob/master/lib/extensions.js

binaryName = [
	platform, '-',
	process.arch, '-',
	process.versions.modules
].join('');

node-sass supports different configuration parameters to change settings related to the sass binary such as binary name, binary path or alternative download path. Following parameters are supported by node-sass:

Variable name.npmrc parameterProcess argumentValue
SASS_BINARY_NAMEsass_binary_name--sass-binary-namepath
SASS_BINARY_SITEsass_binary_site--sass-binary-siteURL
SASS_BINARY_PATHsass_binary_path--sass-binary-pathpath
SASS_BINARY_DIRsass_binary_dir--sass-binary-dirpath

These parameters can be used as environment variable:

  • E.g. export SASS_BINARY_SITE=http://example.com/

As local or global .npmrc configuration file:

  • E.g. sass_binary_site=http://example.com/

As a process argument:

  • E.g. npm install node-sass --sass-binary-site=http://example.com/