csantanapr / grunt-cordovacli

Wraps web app with Cordova CLI using GruntJS
Apache License 2.0
60 stars 31 forks source link

is build --release possible? #11

Closed njtman closed 9 years ago

njtman commented 9 years ago

After looking over the documentation, I'm not sure if we can specify an argument for the build command. In my use case, I would like to specify the --release arguments.

Is this possible? Am I missing something?

Thanks.

njtman commented 9 years ago

Never mind, after looking through the source I was able to figure it out.

            options: {
               path: 'cordova',
                command: 'build',
                platforms: ['android'],
                args: ['--release']
            }

The build argument can be specified in the args array, proceeded by the double dash "--".

csantanapr commented 9 years ago

no problem, sorry that I didn't responded earlier