From ae6b4778d7bc66d0cf72dc471d9360160d01ae50 Mon Sep 17 00:00:00 2001 From: Scott Falkingham Date: Fri, 7 Aug 2015 16:12:25 -0500 Subject: [PATCH] Added option to not extend file.data. --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 5707ada..54c35dc 100644 --- a/index.js +++ b/index.js @@ -43,7 +43,11 @@ module.exports = function(options) { } if (file.data) { - data = extend(file.data, data); + if(opts.extend_filedata !== false) { + data = extend(file.data, data); + } else { + data.filedata = file.data + } } if (opts.load_json === true) {