Moved from version 3 of GULP with which there were no problems at all at all. It seems to be all right. BUT with the explicit indication of the folder where you need to shove files, he began to create another one.
for example app / less / style.less Should fly to the dist / css / style.css folder and fly to dist / css / less /style.css
and the question arises How to remove the less folder from the destination path?
gulp.task('less', function(){ return gulp.src(paths.styles.src) .pipe(gp.less()) .pipe(gp.autoprefixer('last 5 versions')) .on("error", gp.notify.onError({ message: "Error: <%= error.message %>", title: "style" })) .pipe(gp.concat('style.css')) .pipe(gp.csso()) .pipe(gp.rename({ suffix: '.min' })) .pipe(gulp.dest(paths.styles.dest)) });