如何在gruntjs中使用watch将多个任务分配给多个文件

How to use watch in gruntjs to assign multiple tasks to multiple files

本文关键字:任务分配 文件 watch gruntjs      更新时间:2023-09-26

我正在尝试这样做(伪代码):

watch
files: fileset1 (for example: *.less), fileset2 (for example: *.mustache)
tasks: 'less','rake'

有可能吗?如果是,如何?

取自Grunt jQuery示例:

watch: {
   files: ['*.less', '*.mustache'],
   tasks: 'less rake'
}