Inline local and external assets (images, fonts) in a CSS file in the form of a data URI.
$ npm install --save-dev gulp-css-inline-assets
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'));
});
Type: boolean
Determines if URLs with errors should be ignored.
Type: array
List of URLs to ignore (do not make them inline.). Wildcard is allowed.
Based on gulp-inline-assets module by Gustavo Henke
MIT @ Pinacono