Gulp — how to copy files from build after build?

Try to copy the files after build to build.
Implement standard
gulp.task('copy-from-build:css', () => {
gulp.src('build/css/**/*.*').pipe(gulp.dest('folder/css/'));
});


When you run gulp via the copy-from-build:css everything works fine.
When trying privaste the task to the gulp build - build going, but the files are not copied.

***
Sources:

gulp.task('build', function(cb) {
runSequence(
'clean',

[
 'html-njk', //templating with nunjucks
'css',
'js ' gulp',
],

'copy:js-single-files',
'copy:favicon',
'copy:fonts',
'copy:img',

'copy-from-build:css',

cb
);
});


Log console:
[10:29:38] Starting 'build'...
[10:29:38] Starting 'clean'...
[10:29:38] Finished 'clean' after 22 ms
[10:29:38] Starting 'html-njk'...
[10:29:38] Finished 'html-njk' after 12 ms
[10:29:38] Starting 'css'...
[10:29:38] Finished 'css' after 6.74 ms
[10:29:38] Starting 'js ' gulp'...
[10:29:38] Finished 'js ' gulp' after 2.99 ms
[10:29:38] Starting 'copy:js-single-files'...
[10:29:38] Finished 'copy:js-single-files' after 1.32 ms
[10:29:38] Starting 'copy:favicon'...
[10:29:38] Finished 'copy:favicon' after 671 µs
[10:29:38] Starting 'copy:fonts'...
[10:29:38] Finished 'copy:fonts' after 547 µs
[10:29:38] Starting 'copy:img'...
[10:29:38] Finished 'copy:img' after 814 µs
[10:29:38] Starting 'copy-from-build:css'...
[10:29:38] Finished 'copy-from-build:css' after 526 µs
[10:29:38] Finished 'build' after 68 ms
June 10th 19 at 15:58
1 answer
June 10th 19 at 16:00
Solution
Thank you .

The problem was the missing return one of the tasks.
Ie


gulp.task('name', function(cb) {
return ...
});

He singleserve of completion of tasks and allows you to perform tasks synchronously.

Find more questions by tags Assembling projectsGulp.js