@
@
@Predaytor2018-11-01 17:10:06
gulp.js
@Predaytor, 2018-11-01 17:10:06

Gulpfile SRC. How to include all folders except '_**'?

There is a build task:

var buildFiles = gulp.src([
    '!node_modules', '!_*/', '**/*.html',
    '*.html',
    '.htaccess',
    ]).pipe(gulp.dest('_site'));

How to simultaneously include all folders '**/*.html',and at the same time exclude node_modules and folders that have '_site' at the beginning for example (lower slash). Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2018-11-01
_

Try like this:
'!node_modules', '!**/_**/*.*', '**/*.html',

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question