How grunt watch files in sub folders?

后端 未结 1 1238
伪装坚强ぢ
伪装坚强ぢ 2021-01-31 07:15

My codes folders and files like this, you never know how many sub folders in it:

js/sub1/a.js
js/sub2/b.js
js/sub3/sub31/c.js
js/sub4/sub41/sub411/d.js


        
相关标签:
1条回答
  • 2021-01-31 07:27

    Per the official documentation on file globbing, to watch for changes for files of a certain file type in the directory path and its subdirectories, you'll want:

    files: ['js/**/*.js']
    
    0 讨论(0)
提交回复
热议问题