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

adds cheerio specific options from inside gulp task

Open zooshme opened this issue 8 years ago • 0 comments

I was struggling to keep self-closing tags for xslt syntax. Since gulp-inline is based on cheerio.js it would be great if we could pass cheerio specific options from inside a gulp task:

const gulp = require('gulp');
const inline = require('gulp-inline);

gulp.task('inline', function() {
  return gulp.src(<path to source file>)
    .pipe(inline({
      cheerio: {
        xmlMode: true,
        recognizeSelfClosing: true
      }
    }))
    .pipe(gulp.dest(<path to your assets folder>));
});

zooshme avatar Sep 18 '17 10:09 zooshme