How can I use a glob to ignore files that start with an underscore?

前端 未结 4 1916
暖寄归人
暖寄归人 2020-12-16 12:35

I am using this file matching in gulp:

\'content/css/*.css\'

But I would like to only include the files that do not start

4条回答
  •  粉色の甜心
    2020-12-16 13:08

    If Gulp wildcards are like shell wildcards:

    content/css/[^_]*.css
    

    The ^ at the beginning of a character set means to match any characters not in the set.

提交回复
热议问题