Skip to content

Instantly share code, notes, and snippets.

@guemidiborhane
Created July 30, 2016 07:13
Show Gist options
  • Save guemidiborhane/b80c458b78583d61e3df0ce3f480f0f1 to your computer and use it in GitHub Desktop.
Save guemidiborhane/b80c458b78583d61e3df0ce3f480f0f1 to your computer and use it in GitHub Desktop.
(function (file) {
var fs = require('fs'),
_ = require('underscore');
if (fs.existsSync(file)) {
_.mixin({
deepExtend: require('underscore-deep-extend')(_)
});
_.deepExtend(elixir.config, JSON.parse(fs.readFileSync(file, 'utf8')));
}
})('config.json');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment