0.4.0 • Published 7 years ago

gulp-baseimg v0.4.0

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

gulp-baseimg

Gulp plugin for generate data uri stylesheet from set of images.

##Usage

npm install gulp-baseimg --save-dev

###Example config

gulp.task('imgBase', function() {
    gulp.src('./images/data/*.png')
        .pipe(baseimg({
            styleTemplate: 'scss/data_gen.scss.mustache',
            styleName: '_data_gen.scss'
        }))
        .pipe(gulp.dest('./scss'));
});

###Options

####styleTemplate Path to mustache template

####styleName Result file name

###Template variables ####items Array of images data

####itemsi.name Image filename without extension

####itemsi.width & itemsi.height Image width and height in pixels

####itemsi.data Data URI string

0.4.0

7 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago