sindresorhus / gulp-filter

Filter files in a `vinyl` stream
MIT License
315 stars 37 forks source link

Filter negative dosent work #89

Closed mamashi closed 5 years ago

mamashi commented 6 years ago

Hi,

I try to filter a gulp task with your plugin but he doesn't work even if i copy your example, he doesn't work. Your plugin is it still maintained ? I have try every syntax possible and i have look all topics possible but no results.

Your respond : "Support questions are better asked on Stack Overflow: http://stackoverflow.com/questions/tagged/gulp Paste in the link to the question here so others can follow ;)", for the same question 2 years ago so i don't know if you respond for that but if your plugin doesn't work with your own exemples of your documentation it may be that it is deprecated but you don't specify it anywhere.

This is my code(one particular syntax on this example but i have try everything) :

`var src = { scss: ['dev/scss/*/.scss' } gulp.task('styles', function(){ const front_css_filter = filter(['', '!admin//*.scss'], {restore: true});

return gulp.src(src.scss)
    .pipe(plumber())
    .pipe(sass().on('error', sass.logError))
    .pipe(prefix({
        browsers: ['last 2 versions']
    }))
    .pipe(front_css_filter)
    .pipe(concat(filename.css))
    .pipe(merge_mq())
    .pipe(gulp.dest(dest.css))
    .pipe(front_css_filter.restore)
    .pipe(browser_sync.stream());

}); ` Yours sincerely.

StoneCode5 commented 6 years ago

this plugin really works. please check your filter you should try gulp-debug to see what is in pipeline.