@thasmo/gulp-juice
v0.2.0
Published
Gulp plugin to inline CSS in HTML files using Automattic's Juice.
Downloads
4
Maintainers
Readme
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.