diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index b8e7b73d..41f4a946 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -128,7 +128,7 @@ class Pipeline { filename = filename.replace(targetDir, ''); self.logger.info("writing file " + (self.buildDir + targetDir + filename).bold.dim); - fs.copySync(self.buildDir + targetDir + filename, file.path, {overwrite: true}); + fs.copySync(file.path, self.buildDir + targetDir + filename, {overwrite: true}); }); } else { let content = contentFiles.map(function (file) { diff --git a/test_app/app/images/image1.png b/test_app/app/images/image1.png new file mode 100644 index 00000000..ecea4fa7 Binary files /dev/null and b/test_app/app/images/image1.png differ diff --git a/test_app/app/images/secondfolder/image2.jpg b/test_app/app/images/secondfolder/image2.jpg new file mode 100644 index 00000000..c41c2c04 Binary files /dev/null and b/test_app/app/images/secondfolder/image2.jpg differ