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)) }); 
  • Add a task code for the LESS - GicO january
  • Yes, already solved the problem. it was necessary to put .pipe (concat ('style.css')). - CaSKeT
  • Then write it as an answer and mark - GicO

0