grunt-execute
grunt-execute copied to clipboard
How do I receive the options passed from Gruntfile.js, in myScript.js?
execute: { target: { options: { args: ['arg1','arg2'] } }, src: ['myScript.js'] }
How do I access the option "args" in the javascript file I am executing? Something like this?:
console.log(options.args[0]); //arg1