Answer the question
In order to leave comments, you need to log in
Gulp How to combine images from subfolders into one?
Source folder 'Markup/blocks/**/*.{png,gif,jpg,jpeg,svg,ico}'
gulp.task(
"frontend:build-images", function (cb) {
del(paths.frontend.images .dest, cb);
gulp.src(paths.frontend.images.src)
.pipe(gulp.dest(paths.frontend.images.dest));
}
);
How to make gulp copy all pictures into one folder?
Now copied taking into account the nesting of folders, for example:
images
--bg1
----fon1
--bg2
----fon2
----fon3
Answer the question
In order to leave comments, you need to log in
var flatten = require('gulp-flatten');
gulp.src('bower_components/**/*.min.js')
.pipe(flatten({ includeParents: 0 }))
.pipe(gulp.dest('build/js'));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question