Grunt: colon argument

I would like to pass the url for the job. Unfortunately, the delimiter used by grunts is a colon, which is also present in the URL.

So how can I pass the url as an argument to a grunt job?

+5
source share
1 answer

I went on the path grunt.option('optionName') .

from the command line, which he named as follows:

 grunt myTask --optionName=httpmyUrl 
+5
source

Source: https://habr.com/ru/post/1202739/


All Articles