D
D
Dmitry2016-01-27 15:51:12
HTML
Dmitry, 2016-01-27 15:51:12

How to configure gulp-rigger to specify multiple paths in gulp.src?

Project Structure

build/
__content/
____page.html
__index.html
src/
__templates/
__css/
__js/
__content/
____page.html
__index.html
__contacts.html

I need to collect files with gulp-rigger (th), with html files located both in the root and in the content folder, they should also be in build/ and build/content/ respectively
, this doesn’t work, I kind of even understand why
gulp.task('html-equip', function(){
  return gulp.src(['src/content/*.html', 'src/*.html'])
    .pipe(rigger())
    .pipe(gulp.dest('build/'))
    .pipe(connect.reload());
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kravchenko, 2016-01-28
@mydearfriend

try like this

gulp.src(['src/*.html','src/content1/*.html','src/content2/*.html'],{base:'src'})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question