Skip to content

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

Description

@julien-f
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.

Activity

  1. yocontra commented on Dec 10, 2015

    @yocontra
    Member

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

  2. Sawtaytoes commented on Dec 11, 2015

    @Sawtaytoes

    This is also broken for me on 2.6.0 when using gulp-filter: sindresorhus/gulp-filter#56

  3. ysndmr commented on Jan 19, 2018

    @ysndmr

    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

  4. Alecto commented on Oct 18, 2018

    @Alecto

    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.

  5. yocontra commented on Oct 18, 2018

    @yocontra
    Member

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

  6. phated commented on Oct 18, 2018

    @phated
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions