import gulp from 'gulp';
import plumber from 'gulp-plumber';
import filter from 'gulp-filter';
import changed from 'gulp-changed';
import imagemin from 'gulp-imagemin';
import { plumberConfig, imageminConfig } from '../config';

export const assets = () => {
	const imageFilter = filter('**/*.{jpg,gif,svg,png}', { restore: true });

	gulp.src([ '**/*.*', '!**/_*.*' ], { cwd: 'source/static/assets' })
		.pipe(plumber(plumberConfig))
		.pipe(changed('dest/assets'))

		// Minify images
		.pipe(imageFilter)
		.pipe(changed('dest/assets'))
		.pipe(imagemin(imageminConfig.images))
		.pipe(imageFilter.restore)

		// Copy other files
		.pipe(gulp.dest('dest/assets'));
};

export const staticFiles = () =>
	gulp.src('**/{*,.*}', { cwd: 'source/static/public' })
		.pipe(plumber(plumberConfig))
		.pipe(gulp.dest('dest'));

@@ -328,16 +328,23 @@
 e %7D);%0A%0A%09
+return 
 gulp.src

Add return for async task cmpletition