I
I
InfoLabs2017-07-19 12:07:53
gulp.js
InfoLabs, 2017-07-19 12:07:53

How to change gulp's dist?

Hello. The essence of the question is this:
There are many directories:
blocks
-name1
--theme
---images
----files....
-name2
-nameN
i.e. the path to fetch the contents of one directory blocks/*/theme/images/*
On exit files should be added in the following order:
-dist
--images
---blockName
----files
Standard task:

gulp.src('blocks/*/theme/images/*').pipe(gulp.dest('dist/images/.........?'));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philip Gaponenko, 2017-07-19
@InfoLabs

You need to use gulp-flatten
https://www.npmjs.com/package/gulp-flatten

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question