Can I run two viewing tasks at the same time?
I understand that I can have any number of tasks that I want in the watch viewing settings, and just start the watch for grunts, and it will watch them all, like this
... watch: { A: { files: "js/dev/**/*.coffee", tasks: ["coffee", "requirejs"] }, B: { files: "js/dev/**/*.coffee", tasks: ["coffee"] }, C: { files: "js/dev/**/*.html", tasks: ["copy"] } } ...
... but I donβt need it. I just want to have different tasks for development and production. As you can guess, the only difference between A (production) and B (development) is minimization and concatenation. I do not need to run tasks A and B at the same time.
I came up with this idea first
grunt.registerTask("prod", ["watch:A", "watch:C"]); grunt.registerTask("dev", ["watch:B", "watch:C"]);
But that did not work. Only the first hours work (C never works). Is it possible to do what I want?
gruntjs grunt-contrib-watch
Vitalii Korsakov Jul 11 '13 at 5:00 2013-07-11 05:00
source share