Glob /* doesn't match files starting with dot

后端 未结 1 1143
时光说笑
时光说笑 2021-02-07 04:49

I\'m using gulp to copy all files from one dir to another using code like this:

gulp.src([ \'app/**/*\' ]).pipe(gulp.dest(\'dist\'));

Glob docs

1条回答
  •  别跟我提以往
    2021-02-07 05:08

    If you add the option dot: true, it should work. Eg:

    gulp.task('something', function () {
        return gulp.src([ 'app/**/*' ], {
            dot: true
        }).pipe(gulp.dest('dist'));
    });
    

    Reference

    0 讨论(0)
提交回复
热议问题