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) {