/gulp-inline-assets

Gulp plugin for inlining CSS assets

Primary LanguageJavaScript

gulp-inline-assets

Inline local and external assets (images, fonts) in a CSS file in the form of a data URI.

Build Status

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