B
B
bro-dev2016-02-13 03:11:41
gulp.js
bro-dev, 2016-02-13 03:11:41

How to accept gulp run options?

That is, I write gulp -foldername to the console, how to accept this variable in gulpfule.js?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey P, 2016-02-13
@xPomaHx

There is a process.argv, the data is represented by an array, iterate over and extract the next / th elements

I
Igor Belikov, 2016-02-13
@igorbelikov

It's very simple:
stackoverflow.com/q/23023650/2642260

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question