We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
using
gulp.src("file.js") .pipe(concat("file2.js")) .pipe(concat("file3.js")) .pipe(gulp.dest("file4.js"));
will not put all files into dest. Is this expected ? If true, why does it makes a difference when operating on streams ?
I know using gulp.src(["file.js", "file2.js", "file3.js", "file4.js"]) will fix it.
The text was updated successfully, but these errors were encountered:
What are you expecting to happen here?
Sorry, something went wrong.
Behaviour of gulp-concat is correct. What your code actually does is renaming file.js to file4.js:
gulp-concat
file.js
file4.js
gulp.src("file.js") // 1 .pipe(concat("file2.js")) // 2 .pipe(concat("file3.js")) // 3 .pipe(gulp.dest("file4.js")); // 4
file2.js
file3.js
This will not just fix it, it is the correct way to use streams and gulp-concat.
No branches or pull requests
Hi,
using
gulp.src("file.js")
.pipe(concat("file2.js"))
.pipe(concat("file3.js"))
.pipe(gulp.dest("file4.js"));
will not put all files into dest.
Is this expected ?
If true, why does it makes a difference when operating on streams ?
I know using gulp.src(["file.js", "file2.js", "file3.js", "file4.js"]) will fix it.
The text was updated successfully, but these errors were encountered: