gulp-concat icon indicating copy to clipboard operation
gulp-concat copied to clipboard

Does not work with the passthrough option of Gulp 4

Open julien-f opened this issue 10 years ago • 6 comments

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.

julien-f avatar Mar 26 '15 12:03 julien-f

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

yocontra avatar Dec 10 '15 04:12 yocontra

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

Sawtaytoes avatar Dec 11 '15 03:12 Sawtaytoes

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

ysndmr avatar Jan 19 '18 12:01 ysndmr

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:\node_modules\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.

Alecto avatar Oct 18 '18 13:10 Alecto

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

yocontra avatar Oct 18 '18 16:10 yocontra

@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)

phated avatar Oct 18 '18 17:10 phated