Answer the question
In order to leave comments, you need to log in
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
You need to use gulp-flatten
https://www.npmjs.com/package/gulp-flatten
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question