grunt-execute icon indicating copy to clipboard operation
grunt-execute copied to clipboard

How do I receive the options passed from Gruntfile.js, in myScript.js?

Open KristianWindsor opened this issue 6 years ago • 0 comments

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

KristianWindsor avatar Aug 11 '17 23:08 KristianWindsor