Use grunt option with grunt.util.spawn, close gh-1255.

(cherry picked from commit b5580a9898)
This commit is contained in:
Kyle Robinson Young 2013-04-24 11:56:38 -07:00 committed by Dave Methvin
parent fc9e50a3ed
commit a6d35a313e
2 changed files with 2 additions and 1 deletions

View File

@ -165,3 +165,4 @@ Dmitry Gusev <dmitry.gusev@gmail.com>
Michał Gołębiowski <m.goleb@gmail.com>
Brandon Johnson <bjohn465+github@gmail.com>
Jason Bedard <jason+jquery@jbedard.ca>
Kyle Robinson Young <kyle@dontkry.com>

View File

@ -256,7 +256,7 @@ module.exports = function( grunt ) {
grunt.log.writeln( "Creating custom build...\n" );
grunt.util.spawn({
cmd: process.platform === "win32" ? "grunt.cmd" : "grunt",
grunt: true,
args: [ "build:*:*:" + modules, "pre-uglify", "uglify", "dist" ]
}, function( err, result ) {
if ( err ) {