Gulp Copying Files from one Directory to another

前端 未结 1 893
刺人心
刺人心 2021-02-18 18:19

I want to Gulp Copy Multiple Files

gulp.task(\'copy\', function(){

     gulp.src(
        \'bower_components/bootstrap/dist/js/bootstrap.js\',          


        
1条回答
  •  名媛妹妹
    2021-02-18 19:02

    Try to add [], like this:

    gulp.src([
        'file1',
        'file2',
        'file3'
    ])
    .pipe(gulp.dest('public/assets/js'));
    

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