I'm using the yargs
npm module to send arguments to my gulp tasks from the console like so;
$ gulp dev --minify
However, I can only send arguments on the initial run from the console. Is there a way I could send arguments to tasks from another gulp task? Sort of like this;
gulp.task('dev', function() {
if (yargs.argv.minify) {
gulp.start('css --minify');
}
});
I need this because otherwise I have to make a sepparate task for dev and production css builds, when I could just do one task with an optional parameter like with grunt.