Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is that possible to filter stream after changed it? #93

Open
Scorpovi4 opened this issue May 5, 2020 · 0 comments
Open

Is that possible to filter stream after changed it? #93

Scorpovi4 opened this issue May 5, 2020 · 0 comments

Comments

@Scorpovi4
Copy link

I'm using template convertation from ejs to html and want to filter some files which have been converted from ejs to html but didn't transfer to the next gulp task.

gulp.task('ejs', () => {
    const exceptions = filter(['**', '!**/_pages/modals/**/*.html'], {
      restore: true,
    });
    return gulp
      .src($.srcFolder + 'ejs/_pages/**/*.ejs')
      .pipe(
        plumber({
          errorHandler: notify.onError('Error: <%= error.message %>'),
        })
      )
      .pipe($.cached('ejs'))
      .pipe(ejs().on('error', ejs.preventCrash))
      .pipe(debug())
      .pipe(exceptions)
      .pipe(htmlValidator())
      .pipe(htmlValidator.reporter())
      .pipe(exceptions.restore)
      .pipe(gulp.dest($.distHtml));
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant