gulp-inline-assets
v0.1.1
Published
Gulp plugin for inlining CSS assets
Downloads
285
Maintainers
Readme
gulp-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-inline-assets
Usage
var gulp = require('gulp');
var inlineAssets = require('gulp-inline-assets');
gulp.task('default', function () {
return gulp.src('src/app.css')
.pipe(inlineAssets(options))
.pipe(gulp.dest('dist'));
});
Options
ignoreErrors
Type: boolean
Determines if URLs with errors should be ignored.
License
MIT @ Gustavo Henke