Skip to content

Commit bc9905c

Browse files
committed
Prevent config expansion when multi tasks need to run all targets in turn.
1 parent 0ce2b8b commit bc9905c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grunt/task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ task.renameTask = function(oldname, newname) {
281281
// If a property wasn't passed, run all task targets in turn.
282282
task.runAllTargets = function(taskname, args) {
283283
// Get an array of sub-property keys under the given config object.
284-
var targets = Object.keys(grunt.config(taskname) || {});
284+
var targets = Object.keys(grunt.config.getRaw(taskname) || {});
285285
// Fail if there are no actual properties to iterate over.
286286
if (targets.length === 0) {
287287
grunt.log.error('No "' + taskname + '" targets found.');

0 commit comments

Comments
 (0)