jan-h
2/22/2016 - 12:55 PM

Pass command line variables to Grunt

Pass command line variables to Grunt

In gruntfile.js

var target = grunt.option('target') || 'dev';

On the command line

grunt deploy --target=staging

See http://gruntjs.com/api/grunt.option