Node glob pattern for every .js file except .spec.js

前端 未结 1 1033
我在风中等你
我在风中等你 2021-01-31 01:45

I am looking for a better glob pattern for usemin, i want to to find all .js files but exclude the .spec.js files. I have the following solution so far

相关标签:
1条回答
  • 2021-01-31 02:38

    This glob includes all *.js but not *.spec.js:

    components/**/!(*.spec).js
    
    0 讨论(0)
提交回复
热议问题