diff options
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/cdn.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tasks/cdn.js b/tasks/cdn.js index 7d8f28e..4c83c0c 100644 --- a/tasks/cdn.js +++ b/tasks/cdn.js @@ -25,7 +25,11 @@ gulp.task('cdn:stage-bower.json', ['clean:cdn'], function() { if (version === 'master') { gutil.log('Applying overrides to ' + stagingPath + '/bower.json'); - bowerJson = Object.assign(bowerJson, bowerJson.masterOverrides); + + // Assign the override properties. + Object.keys(bowerJson.masterOverrides).forEach(override => { + bowerJson[override] = bowerJson.masterOverrides[override]; + }); delete bowerJson.masterOverrides; } |