diff --git a/src/index.js b/src/index.js index c06a8e3..bf600d9 100644 --- a/src/index.js +++ b/src/index.js @@ -63,8 +63,12 @@ exports.build = function(opts) { } function copyMedia(callback) { - var dest = path.join(opts.output, 'media', 'original'); - copyFolder(opts.input, dest, callback); + regen({ + cwd: opts.input, + src: '**/*.{jpg,jpeg,png,mp4,mov}', + dest: media + '/original/$path/$name.$ext', + process: fs.copy + }, callback); } function photoLarge(callback) {