gulp-css-inline-assets
v0.1.5
Published
Gulp plugin for inlining CSS assets
Downloads
5
Readme
gulp-css-inline-assets
Inline local and external assets (images, fonts) in a CSS file in the form of a data URI.
Install
$ npm install --save-dev gulp-css-inline-assets
Usage
var gulp = require('gulp');
var inline = require('gulp-css-inline-assets');
gulp.task('default', function () {
return gulp.src('src/app.css')
.pipe(inline(options))
.pipe(gulp.dest('dist'));
});
Options
ignoreErrors
Type: boolean
Determines if URLs with errors should be ignored.
ignores
Type: array
List of URLs to ignore (do not make them inline.). Wildcard is allowed.
Credit
Based on gulp-inline-assets module by Gustavo Henke
License
MIT @ Pinacono