question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After applying `gulp-filter@4.0.0`, following pipes not working

See original GitHub issue

Hello, after applying gulp-filter@4.0.0, following plugin like vinyl-map - not working, in older version work fine.

Thanks

Example

var stream = gulp.src(files)
      .pipe(gulp.dest(path))
      .on('error', plugins.util.log)
      .pipe(plugins.filter('*.css'))
      .pipe(map(function (code, filename) {
        plugins.util.log('CSS ' +
        plugins.util.colors.green(filename))
      }))
      .pipe(browserSync.reload({ stream: true }))
    return stream

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
seeekrcommented, Mar 12, 2016

Just want to chime in and say that gulp-filter@4.0.0 is not working for me. Whether *.css or **/*.css is used as a filter expression, zero files after the filter. With ^3.0.1 it’s working, no other changes to the code. Mac OS 10.10, node 5.8.0.

1reaction
mderazoncommented, Apr 5, 2016

I hadn’t done any change to my code, just upgrade gulp-filter from 3 -> 4 I was doing

return gulp.src(mainBowerFiles())
    .pipe(filter('*.js'))
    .pipe(concat('vendor.js'))
    .pipe(uglify())
    .pipe(gulp.dest('./build/js'))

Had to change it to **/*.js and it worked

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use in combination with gulp-sass · Issue #8 - GitHub
I've had all the various sourcemap problems reported when trying to use gulp-sass, gulp-sourcemap and gulp-autoprefixer.
Read more >
How can I integrate Bower with Gulp.js? - Stack Overflow
First gulpFilter.restore is not a function, and secondly if you plan on restoring the filtered files you need to pass {restore: true} when...
Read more >
gulp-scss-lint/README.md - UNPKG
If you want the task to fail when "scss-lint" was not a success then call `failReporter` after the scsslint call. 274.
Read more >
gulp-scss-lint - npm Package Health Analysis - Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix advice.
Read more >
Page 12 – Angular, PWA, C#, ASP.NET, Node.js, Docker ...
Avoid memory leaks when subscribing to RxJS Observables in Angular ... Hell yeah, but we've got a small problem: the application has to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found