0.4.0 • Published 9 years ago

gulp-baseimg v0.4.0

Weekly downloads
38
License
-
Repository
github
Last release
9 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

9 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago