@thasmo/gulp-juice
Gulp plugin to inline CSS in HTML files using Automattic's Juice.
Last updated 4 years ago by thasmo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @thasmo/gulp-juice 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.0                                ...           latest (4 years ago)

2 Versions

  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |