thasmo / gulp.juice

Gulp plugin to inline CSS in HTML files using Automattic's Juice.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gulp Juice

Gulp plugin to inline CSS in HTML files using Automattic's Juice.

Usage

var gulp = require('gulp');
var juice = require('@thasmo/gulp-juice');

gulp.task('juice', function() {
  return gulp.src('*.html')
    .pipe(juice({
      includeResources: true
    }))
    .pipe(gulp.dest('.'))
});

Options

includeResources boolean: false
Enables fetching of resources. Internally Juice's juiceResources function is used.

See Juice's documentation for more options.

License

MIT License

About

Gulp plugin to inline CSS in HTML files using Automattic's Juice.

License:MIT License


Languages

Language:JavaScript 100.0%