There is a task with the help of gulp to run recursively inside which minify (for example) all css files
var gulp = require('gulp'), concatCSS = require('gulp-concat-css'), concat = require('gulp-concat'), notify = require('gulp-notify'), streamqueue = require('streamqueue'), jsmin = require('gulp-jsmin'), autoprefixer = require('gulp-autoprefixer'), csso = require('gulp-csso'), rename = require('gulp-rename'); gulp.task('css', function () { return streamqueue({objectMode: true}, gulp.src([ 'www/BEM/Block/Common/Page/Page.css' , "www/BEM/Block/**/*.css" , "!www/BEM/Block/**/*_print.css" ]) ) // ΠΌΠΈΠ½ΠΈΡΠΈΠΊΠ°ΡΠΈΡ ( ΠΌΠΎΠΆΠ½ΠΎ ΠΎΡΠΊΠ»ΡΡΠ°ΡΡ Π΅ΡΠ»ΠΈ Π·Π°Ρ
ΠΎΡΠ΅ΡΡΡ ) .pipe(concatCSS("style.css")) // Π°Π²ΡΠΎΠΏΡΠ΅ΡΠΈΠΊΡΠ΅Ρ .pipe(autoprefixer({browsers: ['last 3 versions']})) .pipe(csso()) .pipe(gulp.dest('www/public_html/docs/css/')) .pipe(notify('Π‘ΠΎΠ±ΡΠ°Π»ΡΡ css !')); }); I tried different options with gulp.dist (...) including
gulp.dist(function(file){ return file.base }) sometimes it was even collected but errors were falling in the console (various)
How will do the right thing?