Answer the question
In order to leave comments, you need to log in
How to exclude gulp folder by pattern?
it is not possible to exclude folders when processing gulp'om
as it is correct?
this option doesn't work
gulp.src(['!../folder/*.ru/js/*.js', '!../folder/*.com/js/*.js', '../folder/**/js/*.js'])
Answer the question
In order to leave comments, you need to log in
In order to exclude a folder by a pattern, you must also specify an internal continuation, as is done for regular folders.
'!folder/*.ru/**/test.js',
'!folder/*.com/**/test.js',
Maybe put an exception at the end
gulp.src([
'../folder/**/js/*.js',
'!../folder/*.ru/js/*.js',
'!../folder/*.com/js/*.js'
])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question