Commit f94af4d3 authored by Nikolay Gromov's avatar Nikolay Gromov

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

parent 860de3ec
...@@ -144,10 +144,12 @@ function copyImg(cb) { ...@@ -144,10 +144,12 @@ function copyImg(cb) {
let src = `${dir.blocks}${block}/img`; let src = `${dir.blocks}${block}/img`;
if(fileExist(src)) copiedImages.push(src); if(fileExist(src)) copiedImages.push(src);
}); });
if(copiedImages.length) {
(async () => { (async () => {
await cpy(copiedImages, `${dir.build}img`); await cpy(copiedImages, `${dir.build}img`);
cb(); cb();
})(); })();
}
} }
exports.copyImg = copyImg; 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