Answer the question
In order to leave comments, you need to log in
Passing an array to Gulp?
Hello.
Got a question, got a code
const
gulp = require('gulp'),
$ = require('gulp-load-plugins')({
pattern: '*'
}),
dir = require('./.conf/.dirrc.json'),
pl = [
$.pug({
pretty: '\t'
}),
$.rename({
extname: '.php'
})
]
;
Error: write after end
at writeAfterEnd (D:\OSPanel\domains\jub\node_modules\readable-stream\lib\_stream_writable.js:288:12)
at DestroyableTransform.Writable.write (D:\OSPanel\domains\jub\node_modules \readable-stream\lib\_stream_writable.js:332:20)
at DestroyableTransform.ondata (D:\OSPanel\domains\jub\node_modules\readable-stream\lib\_stream_readable.js:619:20)
at DestroyableTransform.emit ( events.js:159:13)
at addChunk (D:\OSPanel\domains\jub\node_modules\readable-stream\lib\_stream_readable.js:291:12)
at readableAddChunk (D:\OSPanel\domains\jub\node_modules\ readable-stream\lib\_stream_readable.js:278:11)
at DestroyableTransform.Readable.push (D:\OSPanel\domains\jub\node_modules\readable-stream\lib\_stream_readable.js:245:10)
at DestroyableTransform.Transform.push (D:\OSPanel\domains\jub\node_modules\ readable-stream\lib\_stream_transform.js:148:32)
at DestroyableTransform.notify [as _transform] (D:\OSPanel\domains\jub\node_modules\gulp-notify\lib\notify.js:41:14)
at DestroyableTransform .Transform._read (D:\OSPanel\domains\jub\node_modules\readable-stream\lib\_stream_transform.js:184:10)
module.exports = function pipe(stream, tubes) {
tubes = tubes || stream.slice(1);
return tubes.reduce(function(stream, tube) { return stream.pipe(tube); }, Array.isArray(stream) ? stream[0] : stream);
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question