How to specify in gulp to copy a folder along with the contents, something like? gulp.src ('src / icons / ) For example, you need to drop the icons folder along with all its contents into the build folder. Where can I see the meaning of these characters like /,. , ** etc.?

    1 answer 1

    • How to copy the directory with the contents: Create a task in your example with gulp.src ('src / icons /):

    gulp.task('copy', function() { gulp.src('src/icon/**/*')//ΠΊΠΎΠΏΠΈΡ€ΡƒΠ΅Ρ‚ всС содСрТимоС вмСстС с Π²Π»ΠΎΠΆΠ΅Π½Ρ‹ΠΌΠΈ ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³Π°ΠΌΠΈ .pipe(gulp.dest('build')) }); 
    ** - used in the mask path selects subdirectories. * -any characters, in our case, any characters in the file name. The 'src / icon / ** / *' mask will select the entire contents of src / icon /.