Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
change _.extend to _.merge
Browse files Browse the repository at this point in the history
  • Loading branch information
codydaig committed Jul 19, 2015
1 parent 2f8e20e commit 4d1ae6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ var initGlobalConfig = function() {
var environmentAssets = require(path.join(process.cwd(), 'config/assets/', process.env.NODE_ENV)) || {};

// Merge assets
var assets = _.extend(defaultAssets, environmentAssets);
var assets = _.merge(defaultAssets, environmentAssets);

// Get the default config
var defaultConfig = require(path.join(process.cwd(), 'config/env/default'));
Expand All @@ -156,7 +156,7 @@ var initGlobalConfig = function() {
var environmentConfig = require(path.join(process.cwd(), 'config/env/', process.env.NODE_ENV)) || {};

// Merge config files
var envConf = _.extend(defaultConfig, environmentConfig);
var envConf = _.merge(defaultConfig, environmentConfig);

var config = _.merge(envConf, (fs.existsSync(path.join(process.cwd(), 'config/env/local.js')) && require(path.join(process.cwd(), 'config/env/local.js'))) || {});

Expand Down

0 comments on commit 4d1ae6e

Please sign in to comment.