Created
December 3, 2019 14:10
-
-
Save yairEO/88c71d61d14f4bad39a4c8f2f945e08e to your computer and use it in GitHub Desktop.
Get gulp env variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var opts = process.argv.reduce((result, item) => { | |
if( item.indexOf('--') == 0 ) | |
result[item.replace('--','')] = 1 | |
return result; | |
}, {}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calling a task with variables:
Using variables in a task:
tap
is a plugin that returns empty stream