Commit f94af4d3 authored by Nikolay Gromov's avatar Nikolay Gromov

Исправление задачи копирования картинок

parent 860de3ec
......@@ -144,10 +144,12 @@ function copyImg(cb) {
let src = `${dir.blocks}${block}/img`;
if(fileExist(src)) copiedImages.push(src);
});
(async () => {
await cpy(copiedImages, `${dir.build}img`);
cb();
})();
if(copiedImages.length) {
(async () => {
await cpy(copiedImages, `${dir.build}img`);
cb();
})();
}
}
exports.copyImg = copyImg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment