Glob matching, exclude all JS files

后端 未结 1 1245
攒了一身酷
攒了一身酷 2020-12-05 04:12

I\'m a new user to gulp.js. I\'d like to move all of my non-javascript files to a build directory. What I\'ve got right now is this:

//Test copy
gulp.task(         


        
1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 04:27

    Try this glob pattern:

    myProject/src/**/!(*.js|*.map|*.src)
    

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