gulp-community / gulp-concat

Streaming concat middleware for gulp
MIT License
792 stars 127 forks source link

Does not work with the passthrough option of Gulp 4 #89

Open julien-f opened 9 years ago

julien-f commented 9 years ago
var gulp = require('gulp');
var concat = require('gulp-concat');

gulp.task(function foo() {
  return gulp.src('src/*.css', {
    passthrough: true,
  })
    .pipe(concat('styles.css'))
    .pipe(gulp.dest('dist/'))
  ;
});

styles.css is never written.

It does work with gulp-continuous-concat.

yocontra commented 8 years ago

Is this still a problem? That option has had some work done to it

Sawtaytoes commented 8 years ago

This is also broken for me on 2.6.0 when using gulp-filter: https://github.com/sindresorhus/gulp-filter/issues/56

ysndmr commented 6 years ago

I have also this problem and i haven't got any idea about that how can i fix it. I tried alot but I could not find the solution.

Error in plugin 'gulp-concat' Message: Missing file option for gulp-concat

/home/virtualservers/gulptest/node_modules/decomment/node_modules/esprima/dist/esprima.js:3391 throw error; ^ Error: Line 1: Unexpected token ILLEGAL

Alecto commented 5 years ago

tried it - does not work with gulp 4, still no solution?

[16:55:02] 'concat' errored after 16 ms [16:55:02] Error: File not found with singular glob: D:/webProjects/motobratva/my/alecto/my/styles/all/template/highslide/highslide-full.min.js (if this was purposeful, use allowEmpty option) at Glob. (D:\node_modules\glob-stream\readable.js:84:17) at Object.onceWrapper (events.js:273:13) at Glob.emit (events.js:182:13) at Glob.EventEmitter.emit (domain.js:442:20) at Glob._finish (D:\node_modules\glob\glob.js:197:8) at done (D:\node_modules\glob\glob.js:182:14) at Glob._processSimple2 (D:\node_modules\glob\glob.js:688:12) at D:\node_modules\glob\glob.js:676:10 at Glob._stat2 (D:\nodemodules\glob\glob.js:772:12) at lstatcb (D:\node_modules\glob\glob.js:764:12)

Process finished with exit code 1

but the file exists and the same task with gulp 3.9.1 works.

yocontra commented 5 years ago

@Alecto That error isn't coming from this plugin.

phated commented 5 years ago

@Alecto like contra said - please read your error messages, which explicitly states your issue:

File not found with singular glob: D:/webProjects/motobratva/my/alecto/my/styles/all/template/highslide/highslide-full.min.js (if this was purposeful, use allowEmpty option)