How to exclude a folder gulp template?

can't exclude folders when processing gulp'om
this option does not work
gulp.src(['!../folder/*.EN/js/*.js', '!../folder/*.com/js/*.js', '../folder/**/js/*.js'])

to exclude the processing of folder end .EN and the end .com
June 5th 19 at 21:40
3 answers
June 5th 19 at 21:42
In order to exclude a folder pattern, you need to specify internally a continuation, as is done for normal folders.

June 5th 19 at 21:44
You may want to put an exception in the end
regardless of location, is not working - hermina_Doy commented on June 5th 19 at 21:47
You may need / at the beginning - Yvette_Sau commented on June 5th 19 at 21:50
also does not work, try these options




- hermina_Doy commented on June 5th 19 at 21:53
June 5th 19 at 21:46
Exceptions it is recommended to put at the beginning.
Specify a path exception to the nesting level of the file Gulp.
That is, if you have, for example, lies at the root gulpfile, and the next project in the app directory, write:
it does not solve the issue - hermina_Doy commented on June 5th 19 at 21:49

Find more questions by tags JavaScriptGulp.js