LimePot
76722fec47
Going to slowly work on a Bulma site, which will end up being the main site. Currently under the /BETA/ folder so Alpha site will still be main site.
20 lines
388 B
JavaScript
20 lines
388 B
JavaScript
/*!
|
|
* node-sass: lib/binding.js
|
|
*/
|
|
|
|
var errors = require('./errors');
|
|
|
|
/**
|
|
* Require binding
|
|
*/
|
|
module.exports = function(ext) {
|
|
if (!ext.hasBinary(ext.getBinaryPath())) {
|
|
if (!ext.isSupportedEnvironment()) {
|
|
throw new Error(errors.unsupportedEnvironment());
|
|
} else {
|
|
throw new Error(errors.missingBinary());
|
|
}
|
|
}
|
|
|
|
return require(ext.getBinaryPath());
|
|
};
|