0.1.5 • Published 8 years ago

gulp-css-inline-assets v0.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

gulp-css-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-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