Grunt Run in a For Loop
问题 I'm new to grunt. I have a gruntfile that works for a single build. There are several target that are chained together to complete the process. The problem is that I need to create several different builds using variable data. I'm trying to figure out how to do this in my gruntfile. Today, to do a build, I just need to run grunt --foo=bar build or grunt --foo=baz build What I'd like to, and have tried to do, is create a build-all target that uses an array to define the foo data, like so: