grunt-contrib-watch: Cant not defined task which include a subset of multiple watch tasks
The problem is quite simple, I defined my watch tasks like:
watch: {
"a": { files: "...", tasks: [ .. ] },
"b": { files: "...", tasks: [ .. ] },
"c": { files: "...", tasks: [ .. ] }
}
and after that I want to define a new task which only contain a subset of all the watch tasks:
grunt.registerTask( 'myWatch', [ 'watch:a', 'watch:c' ] );
But it seems like only the first watch subtask works.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 24 (9 by maintainers)
A solution I’ve used is to define multiple watch targets and rename the watch task like so:
You can dynamically write the task config in a custom task:
Success!