简体   繁体   中英

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

I'm trying to do this (pseudo code):

watch

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

Is it possible? If so, how?

Taken from the Grunt jQuery example :

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM