1.0.4 • Published 7 years ago

gulp-base64-image v1.0.4

Weekly downloads
16
License
-
Repository
github
Last release
7 years ago

gulp-base64-image

npm i gulp-base64-image

Use the inline-image function from Compass in gulp-sass (node-sass).

usage

// in gulpfile
var gulp = require('gulp');
var sass = require('gulp-sass');
var inline_image = require('gulp-base64-image');
gulp.src('screen.sass')
    .pipe(
        sass({
            functions: inline_image({url:'path/to/images/'})
        })
    )
    .pipe(gulp.dest('./css'));
body
  background: inline-image('image.png')

Credit

Credit to Joseph Clay.

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago