Looking for way to copy files in gulp and rename based on parent directory

前端 未结 5 1830
自闭症患者
自闭症患者 2020-12-02 06:51

For each module I have some files that need to be copied over to the build directory, and am looking for a way to minimize the repeated code from this:

gulp         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 07:08

    Not the answer, but applicable to this question's appearance in search results.

    To copy files/folders in gulp

    gulp.task('copy', () => gulp
      .src('index.js')
      .pipe(gulp.dest('dist'))
    );
    

提交回复
热议问题