What is the ** glob character?

前端 未结 4 1397
野趣味
野趣味 2020-12-01 02:49

I have this path in my react gulpfile:

var path = {
  HTML: \'src/index.html\',
  ALL: [\'src/js/*.js\', \'src         


        
4条回答
  •  生来不讨喜
    2020-12-01 03:16

    It's usually used to indicate any number of subdirectories. So

    src/js/**/*.js
    

    Would match

    src/js/files/*.js
    src/js/more-files/*.js
    
    etc
    etc
    

提交回复
热议问题