aboutsummaryrefslogtreecommitdiff
path: root/node_modules/gulp-util/lib/combine.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/gulp-util/lib/combine.js')
-rw-r--r--node_modules/gulp-util/lib/combine.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/gulp-util/lib/combine.js b/node_modules/gulp-util/lib/combine.js
new file mode 100644
index 000000000..f20712d20
--- /dev/null
+++ b/node_modules/gulp-util/lib/combine.js
@@ -0,0 +1,11 @@
+var pipeline = require('multipipe');
+
+module.exports = function(){
+ var args = arguments;
+ if (args.length === 1 && Array.isArray(args[0])) {
+ args = args[0];
+ }
+ return function(){
+ return pipeline.apply(pipeline, args);
+ };
+};