gulp-inline-assets

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i gulp-inline-assets

Weekly Downloads

115

Version

0.1.1

License

MIT

Last publish

Collaborators

  • gustavohenke